Reduce your website's JPEG image sizes by 20-30% to make pages load faster, with no visible quality difference to visitors.
Compress product photos before uploading to an e-commerce site to reduce storage and bandwidth costs.
Optimize screenshots or illustrations in a web app or documentation site by running them through Guetzli before deployment.
Building from source requires a C++ compiler and libpng, processing takes about 1 minute per megapixel and 300 MB RAM per megapixel.
Guetzli is a tool from Google that compresses JPEG image files more efficiently than standard JPEG encoders. When you give it a photo, it produces a JPEG that looks the same to the human eye but is typically 20 to 30 percent smaller in file size compared to what most other JPEG tools produce at the same quality setting. The way it achieves this is by modeling human visual perception: instead of just applying a fixed compression formula, Guetzli tries many different encodings and picks the one where the result looks best to a human viewer for a given file size. This process is slow and memory-intensive. Expect it to take about one minute of processing time per megapixel of input image, and about 300 megabytes of memory per megapixel as well. You run Guetzli from the command line, giving it a PNG or JPEG file as input and specifying where to write the output JPEG. There is an optional quality setting that works on the same scale as common JPEG tools, so you can compare directly. It does not support transparency: if your input PNG has a transparent background, that area will become black in the output. Building it requires a C++ compiler and the libpng library. Instructions are provided for Linux, macOS, and Windows. On macOS it can also be installed directly via Homebrew with a single command.
← google on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.