I often use pngcrush, optipng, and advpng to compress and optimize PNG files. For example, rank_6.png, from this forum is originally 1474 bytes, but it can be reduced to 951 bytes with no change in visual quality. ubuntulogo.png is 5443 bytes vs 2669 bytes. Attached are the optimized images. I use the following script:
Code:
#!/bin/sh
# ./pngoptimze.sh input.png output.png
# Remove color profiles for IE so it renders correctly.
pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB $1 $2
# Reduce the size of the PNG IDAT data stream.
optipng -o7 $2
# Remove ancillary chunks, concatenate all individual IDAT chunks, then re-encode the combined PNG image file using the 7-Zip deflate method.
advpng -z -4 $2
exit
These programs are all available in the universe repository (advpng is part of advancecomp) and might be worth looking at for the forum.
Bookmarks