kornelski / pngquant

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

[Feature Request] Add percentage compression #356

Open zjagoo opened 4 years ago

zjagoo commented 4 years ago

Hello, Would it be possible to implement an option that shows the percentage that the file has been compressed? I was thinking of something simple like Processing mypix.png. Compressed by 82% Reading the file size before and after compression is only required as % = (1-FinalSize/OriginalSize)*100 Thank you for the excellent job! I am a big fan of this library!