Also good for type. GIF is also very good for type. It is a common trick to create bitmaps of headings in an interesting typeface, using a program with good typographic controls. Because of the way it represents flat color, GIF is much better at rendering the sharp edges typical in such headlines. Optimizing the palette.
Most graphic programs let the designer specify palettes of colors.
Optimizing the palette means selecting the 256 colors that best approximate the colors used in an image. One technique often used by designers is to restrict the palette to Netscape Navigator's default palette, which contains only 216 colors and so is easily accommodated by GIF without dithering. JPEG for photos. JPEG comes into its own for photographic images . On the Web, JPEG works well for colorful, well-lit, bright images that do not have too much fine detail.