GIF image files are comprised of 256 (8-bits/pixel) colors maximum, and are best used for images with large areas of the same color. GIF compression stores information about colors in the image encoded in a "color + number of pixels" in a row format. For example, if there are 100 pixels on a line with the color #CC0000, the image file stores the color (#CC0000) and the length of the run (100).
Methodology The first task is to determine the compression strategy for the given image, JPEG for photographic images, GIF for images with flat colors and rendered text. If the image contains both photographic material and text or flat colors, the file type that offers the best combination of color reproduction, sharp text, and file size is chosen. This is determined by attempting both types of compression.
For GIF optimization, the image is reviewed for an initial reduction of unnecessary colors. If any colors can be removed or made to be the same as similar colors—while maintaining the fidelity of the original art—that is done at this point. Next, in Adobe Photoshop 6.0/ImageReady 3.0 (using the save for Web feature) the image is reduced to a low bit-depth and reduced until the image begins to visibly degrade in quality. The bit-depth is then raised to a level at which no degradation of image quality occurs. The color palette settings most often used are Adaptive and Perceptual, however, if the image is comprised primarily of Web safe colors, the Web palette can offer good file size reductions as well.
|