guetzlidir
Will recursively process image files in source directory, optimizing them with Guetzli and writing to output directory. Processing is slow, memory and CPU intensive. EXIF data will be preserved
Optionally supports online processing using TinyJPG and Kraken.io
Guetzli
Guetzli is a JPEG encoder that aims for excellent compression density at high visual quality. Guetzli-generated images are typically 20-30% smaller than images of equivalent quality generated by libjpeg. Guetzli generates only sequential (nonprogressive) JPEGs due to faster decompression speeds they offer.
Supported file formats (file extensions):
- JPEG (.jpg .jpeg)
- PNG (.png)
Supports Windows, Linux, MacOS and probably other OSes.
Installation
pip install guetzlidir
You can download and use it as single Windows binary, see Releases
Usage
PiPy package
guetzlidir --minsize 300 --quality 80 /home/username/myphotos /home/username/photos_out
Windows executable
./guetzlidir.exe "c:\Users\username\Pictures\My Vacation" "c:\Users\username\Pictures\My Vacation Optimized Pictures"
TinyPNG online processing
Get API key, then:
guetzlidir --minsize 300 --tinypng api_key /home/username/myphotos /home/username/photos_out
Kraken.io online processing
Support is removed because no supported version is available in PyPi. See this.
Windows release 0.3.2 still has it's support: Download exe.
Known issues
Paths with spaces in windows are problematic. Looking for a solution.