The problem with PNG gamma correction, and a AppleScript to fix it

The PNG format (Portable Network Graphics) was created to be a replacement for the GIF format. It is patent free open standard with a number of advantages over GIF. One of the few problems with PNG images is that it’s difficult, not to say impossible, to match colors in CSS and GIF images with does in a PNG image.