• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL

Chapter 22. Save for Web and Image Optim... > Photoshop at Work: Optimizing a Colo...

Photoshop at Work: Optimizing a Color Table

The more you work with GIF conversion, the more you realize that the most critical step is in mapping the original colors to a minimal yet representative table set. To most people, it sounds inconceivable that 32 colors can replace the thousands of colors in an image. Although you can do it, you must be careful about which colors you keep and which you throw away. Follow these steps to optimize a color table:

In Photoshop, choose File, Open. The Open dialog box appears. Select the file you want to convert to the GIF format and click Open. Choose File, Save for Web.

From the Colors list, select the lowest number of colors while keeping the file's integrity intact. Click the Optimized tab to review the results.

Click the Color Table tab. Click the Eyedropper tool in the Save For Web dialog box and click a prominent color in the image. The corresponding color in the Color Table is highlighted.

Lock the selected color by clicking the Lock button (marked with a padlock icon) at the bottom of the Color Table palette (see Figure 22.23). Locking a color prevents it from being removed or dithered. Repeat this step for any critical colors in the image.

Figure 22.23. Select a color from the image and lock it in the color table.

With the image showing on the Optimized tab, choose Sort by Luminance from the Color Table palette menu. In the color table, select a color close to a locked color and click the Trash Can icon in the Color Table section (see Figure 22.24). The screen redraws to delete the selected color from the image. Continue deleting colors until you get a core set that represents the image well.

Figure 22.24. Click the Trash Can icon to delete a color.


Keep in mind that colors mapped to transparency and shifted to the Web-safe palette are permanently converted when you save the image. You cannot use the Unmap or Unshift commands after you've saved the file and reopened it.

With the important colors locked down, determine whether you need to change other colors. To change color swatches, double-click the color in the color table; the Color Picker dialog box opens (see Figure 22.25). Change the current color, paying close attention to the Web-safe icon in the picker (the three-sided box icon), which shows you the nearest Web-safe color.

Figure 22.25. Double-click a color in the color table to change its value in the Color Picker.

If you're working with the same kind of image, or you want a series of images to use the same color set, save the color table you just fine-tuned. Choose Save Color Table from the Color Table palette menu. In the Save As dialog box that appears, type a name for the color table and click OK.



Not a subscriber?

Start A Free Trial

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint