Share this Page URL
Help

Chapter 5. Advanced Graphics > Using the Browser-Safe Color Palette - Pg. 139

Advanced Graphics 139 · Does your graphic have any sharp color changes or boundaries?Some graphics change quickly from one color to another rather than fading gradually over a continuum of colors. Because of the mathematics behind the compression algorithm, JPEGs don't cope well with sudden color changes. Use GIF or PNG to handle images such as these. · Do you need a fade-in effect?This isn't too much of a discriminator because GIF, JPEG, and PNG all support some type of fade-in effect--interlacing for GIF and PNG, and p-JPEG for JPEG. Using the Browser-Safe Color Palette Lynda Weinman, a popular author on the topics of Web graphics and color, has advanced the idea of a browser-safe palette-- a set of colors rendered the same way by any browser on any platform. Netscape Navigator and Microsoft Internet Explorer both use the same default 256-color palette when rendering Web pages, but because of slight differences between the PC and the Macintosh, 40 of these colors can appear differently, depending on the platform. If you remove these 40 colors from the default palette, the remaining 216 colors compose a palette that should appear the same regardless of a user's hardware or software. The browser-safe color palette is freely available from http://www.lynda.com/hex.html, ordered both by hue and by RGB color values. Many popular authoring tools now have the Browser-Safe color palette built in, allowing you to make color selections directly from the palette (see Figure 5.4).