A simple image optimization front-end for Windows.
This software is a batch file that serves as a front-end for the JPEG optimization tool MozJPEG, the PNG optimization tool Zopfli, and the PNG color reduction tool Pngquant. Its primary purpose is to optimize images for use on web pages, making them smaller in size without significant quality loss.
In this example, three image files (totaling approximately 1 MB) are optimized, reducing their total size to 185 KB (about 1/5 or less of the original file size).
First, download the binary files for MozJPEG, pngquant, and zopflipng from the following sites:
Note: Since images are often uploaded to blogs, this tool removes EXIF information from JPEG files by default. To handle this, you will also need to install ImageMagick, which will adjust the image orientation after EXIF data is removed.
-
Create a new directory (e.g.,
C:\IMG_BIN, but any name and location are fine) and copy the downloaded binary files andopt_image.batinto it:C:\IMG_BIN | cjpeg-static.exe | optipng.exe | opt_image.bat | pngquant.exe -
Add the directory path to the environment variable
PATHso that the system can recognize these files from anywhere. -
Finally, create a shortcut to
opt_image.baton the desktop for quick access.
Tip: If you're new to setting environment variables on Windows, you can search for "Environment Variables" in the Control Panel or System Settings to find the PATH configuration.
Benchmark details will be added in future updates.