Optimizing the Palette in GIFs and PNGs

As you know from Topic 27, GIF and PNG files have a built-in palette of up to 256 colors. The more colors in the palette, the heavier the image file. If your GIF or PNG image needs all 256 colors, then so be it. However, most GIFs and PNGs can stand to lose some color slots without affecting image quality too noticeably.

GEEKSPEAK

Antialiasing is a technique for creating the appearance of smooth, flowing curves by inserting subtly blended pixels along a curved edge.

Watch out for images that contain round or curved shapes. These images often make use of a technique called antialiasing, which creates the illusion of smoothness by inserting subtly blended pixels along the curved edge. Antialiasing minimizes ...

Get Web Design Garage now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.