tagged png

by mars on 2007-05-30 2 Comments

Want to try implementing a design with PNG graphics?

The glaring problem of PNG images is synchronizing color appearance with GIF/JPEG images & CSS colors. This is a well documented problem.

PNG vs JPEG/GIF color problems can be avoided by using PNG for all of the graphics in a site that must perfectly match.

Otherwise, the best path to PNG bliss is a shell command tool that strips out all that advanced color/gamma data (since it confuses different browsers in different ways) and tries each of the 130+ compression modes to find the most efficient one.

pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB -brute infile.png outfile.png

Get it at the pngcrush development site or as I did (for Mac OS X) via Darwin Ports.



Everything is here.