Re:PNG that works
by ars on Thursday March 17, 2011 @05:58AM
(#2335603)
I've gotten the best results by far by first doing pngout, then optipng, then advpng - in that order!!
On some images each step cuts the file size by 10-15%.
Change the order and you'll get worse results.
Also pngout (and optipng) will convert 24bit PNGs to paletized PNGs if there are not a lot of colors. The often makes the file smaller - but not always. So I also suggest using the -c4 -c2 or -c6 options to pngout (as appropriate for the file) and checking if the file got smaller. But sure to pass -nc to optipng in that case.
On some images each step cuts the file size by 10-15%.
Change the order and you'll get worse results.
Also pngout (and optipng) will convert 24bit PNGs to paletized PNGs if there are not a lot of colors. The often makes the file smaller - but not always. So I also suggest using the -c4 -c2 or -c6 options to pngout (as appropriate for the file) and checking if the file got smaller. But sure to pass -nc to optipng in that case.