PNG and color profiles

PNG is a great format, but there is one issue that its developers thought in a way that makes it also a difficult format.

PNG sticks to color profiles, leading often issues like different colors with same RGB values on a browser view. In supporting browsers, image with #f0f0f0 might have different color than a div with the same color set to its background.

Fortunately there is e.g. pngcrush, which can be used to strip PNG from color profiles. Warped Visions described an easy way:

# pngcrush -rem cHRM -rem gAMA -rem iCCP -rem sRGB -d fixed/ *

P.S. Remember to think twice before accepting free lemonade.

Back