View Single Post
Old 06-24-2023, 06:34 PM   #9
un_pogaz
Chalut o/
un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.un_pogaz ought to be getting tired of karma fortunes by now.
 
un_pogaz's Avatar
 
Posts: 446
Karma: 672378
Join Date: Dec 2017
Device: Kobo
Okay. So my autistic brain decided that was this kind of moment.

I did a little research, and found some new toys. After many tests, I came to the conclusion that the best tool to use is advpng (open-source GPL)

Command:
advpng -z -4 -i 10 <file>

Result:
Note: Like the previous, this test was done at commit d28319b1. And like the previous, your find the results in the attached ZIP file.

The results of advpng on were very interesting. Alone, it is slightly more efficient than PNGout, while covering more files, 1156 files for 172976 bytes saved. However, once you make a pass with OptiPNG afterwards, the results are far more impressive: 1297 files for 1621349 bytes saved.

In the end, on the test commit, advpng+OptiPNG achieved a 3.7% gain in total PNGs size (less with the most recent commit which is already optimized, but more than 1%).

Conclusion:
I think I can bring this topic to a close with the final suggestion of using advpng+OptiPNG, and therefore possibly adding advpng to the calibre toolbox.

I also made a Pull request with this new tool set.
Attached Files
File Type: zip advpng+OptiPNG.zip (60.2 KB, 197 views)

Last edited by un_pogaz; 06-24-2023 at 06:37 PM.
un_pogaz is offline   Reply With Quote