kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.25k stars 487 forks source link

Dry run option / Print difference in filesize #322

Open garygreen opened 5 years ago

garygreen commented 5 years ago

It would be pretty cool if there was some kind of --dry-run option which would print out the difference in filesize without altering the existing image.

This would allow you to see what the overall impact would be from different set of options/images before committing to writing anything to disk.

kornelski commented 5 years ago

It's not possible to know file size without performing the full compression. You can use -o - > /dev/null to throw away the compressed data.