Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
22
Добавлен:
26.03.2015
Размер:
13.48 Mб
Скачать

Adobe Photoshop Help

Preparing Graphics for the Web

 

 

 

Using Help | Contents | Index

Back

431

Optimizing colors in GIF and PNG-8 images

Decreasing the number of colors in an image is a key factor in optimizing GIF and PNG-8 images. A reduced range of colors will often preserve good image quality while dramatically reducing the file space required to store extra colors.

The color table gives you precise control over the colors in optimized GIF and PNG-8 images (as well as original images in indexed color mode). With a maximum of 256 colors, you can add and delete colors in the color table, shift selected colors to other colors or to transparency, and lock selected colors to prevent them from being dropped from the palette.

Viewing a color table

The color table for a slice appears in the Color Table panel in the Save for Web dialog box (Photoshop) or the Color Table palette (ImageReady).

Note: In ImageReady, be careful not to confuse the Color Table palette with the Color palette or Swatches palette. You use the Color Table palette to optimize colors; you use the Color palette and Swatches palette to select colors.

To view the color table for an optimized slice:

1(ImageReady) Choose Window > Color Table.

2Select a slice that is optimized in GIF or PNG-8 format. (See “Selecting slices” on page 373.) The color table for the selected slice appears in the Color Table palette.

Note: In ImageReady, the color table for the selected slice will not appear if Auto Regenerate is off. For more information, see “Controlling optimization (ImageReady)” on page 426.

If an image has multiple slices, the colors in the color table may vary between slices (you can link the slices first to prevent this from happening). If you select multiple slices that use different color tables, the color table is empty and its status bar displays the message “Mixed.”

Generating a color table

You can change the palette—or set of colors—in the color table by selecting a color reduction option in the Optimize panel/palette. There are three categories of options:

Dynamic options use a color reduction algorithm to build a palette based on the colors in the image and the number of colors specified in the optimization setting. The colors in the palette are regenerated every time you change or reoptimize the image.

Perceptual, Selective, and Adaptive are dynamic options.

Fixed options use a set palette of colors. In other words, the set of available colors is constant, but the actual colors in the palette will vary depending on the colors in the image. Web, Mac OS, Windows, Black & White, and Grayscale tables are fixed options.

The Custom option uses a color palette that is created or modified by the user. If you open an existing GIF or PNG-8 file, it will have a custom color palette.

Using Help | Contents | Index

Back

431

Adobe Photoshop Help

Preparing Graphics for the Web

 

 

 

Using Help | Contents | Index

Back

432

To select a color reduction algorithm:

Choose an option from the Color Reduction Algorithm pop-up menu (below the file format menu in the Optimize panel/palette):

Perceptual Creates a custom color table by giving priority to colors for which the human eye has greater sensitivity.

Selective Creates a color table similar to the Perceptual color table, but favoring broad areas of color and the preservation of Web colors.This color table usually produces images with the greatest color integrity. Selective is the default option.

Adaptive Creates a custom color table by sampling colors from the spectrum appearing most commonly in the image. For example, an image with only the colors green and blue produces a color table made primarily of greens and blues. Most images concentrate colors in particular areas of the spectrum.

Web Uses the standard 216-color color table common to the Windows and Mac OS 8-bit (256-color) palettes. This option ensures that no browser dither is applied to colors when the image is displayed using 8-bit color. (This palette is also called the Web-safe palette.)

If your image has fewer colors than the total number specified in the color palette, unused colors are removed.

Using the Web palette can create larger files, and is recommended only when avoiding browser dither is a high priority.

Custom Preserves the current color table as a fixed palette that does not update with changes to the image.

Mac OS Uses the Mac OS system’s default 8-bit (256-color) color table, which is based on a uniform sampling of RGB colors. If your image has fewer colors than the total number specified in the color palette, unused colors are removed.

Windows Uses the Windows system’s default 8-bit (256-color) color table, which is based on a uniform sampling of RGB colors. If your image has fewer colors than the total number specified in the color palette, unused colors are removed.

Other color tables appear in the menu if you have saved them previously. (See “Loading and saving color tables” on page 437.)

You can use an alpha channel to influence the generation of color tables. (See “Using masks to modify color reduction” on page 430.)

To regenerate a color table (ImageReady):

Choose Rebuild Color Table from the Color Table palette menu. Use this command to generate a new color table when the Auto Regenerate option is off. (See “Controlling optimization (ImageReady)” on page 426.)

Changing the display of the color table

You can sort colors in the color table by hue, luminance, or popularity, making it easier to see an image’s color range and locate particular colors. In ImageReady, you can also change the size of the color swatches in the color table.

To sort a color table:

Choose a sorting order from the Color Table palette menu:

Unsorted. Restores the original sorting order.

Using Help | Contents | Index

Back

432

Adobe Photoshop Help

Preparing Graphics for the Web

 

 

 

Using Help | Contents | Index

Back

433

Sort By Hue, or by the location of the color on the standard color wheel (expressed as a degree between 0 to 360). Neutral colors are assigned a hue of 0, and located with the reds.

Sort By Luminance, or by the lightness or brightness of a color.

Sort By Popularity, or by the colors’ frequency of occurrence in the image.

To change the size of the color swatches (ImageReady):

Choose Small Swatches or Large Swatches from the Color Table palette menu.

Adding new colors to the color table

You can add colors that were left out in building the color table. Adding a color to a dynamic table shifts the color in the palette closest to the new color. Adding a color to a fixed or Custom table adds an additional color to the palette. (See “Generating a color table” on page 431.)

To add a new color:

1Deselect all colors in the color table (see “Selecting colors” on page 434).

2Choose a color:

Click the color selection box in the Save for Web dialog box (Photoshop) or the toolbox (ImageReady), and choose a color from the color picker.

Select the eyedropper tool in the Save for Web dialog box (Photoshop) or the toolbox (ImageReady) and click in the image.

Select the eyedropper tool , click in the image, hold the mouse down, and drag anywhere on the desktop.You can use this option to select a color displayed in another application, such as a color in a Web page displayed in a browser.

(ImageReady) Select a color from the Color palette or the Swatches palette.

3 Do one of the following:

Click the New Color button in the Color Table palette.

Select New Color from the Color Table palette menu.

(ImageReady) Drag the color from the color selection box, Color palette, or Swatches palette to the Color Table palette.

To switch the color table to a Custom palette, hold down Ctrl (Windows) or Command (Mac OS) when you add the new color.

The new color appears in the color table with a small white square in the lower right corner, indicating that the color is locked. (See “Locking colors in the color table” on

page 436.) If the color table is dynamic, the original color is displayed in the upper left and the new color is displayed in the lower right.

Including black and white in a color table

You can add black and white to the color table when the image does not include these colors. Including black and white is useful when preparing files for multimedia authoring applications, such as Adobe After Effects®.

Using Help | Contents | Index

Back

433

Adobe Photoshop Help

Preparing Graphics for the Web

 

 

 

Using Help | Contents | Index

Back

434

To add black or white to the color table for an image:

1Choose black or white as the foreground color. (See “Choosing foreground and background colors” on page 257.)

2Add the color to the color table. (See “Adding new colors to the color table” on page 433.)

Selecting colors

You select colors directly in the optimized image or in the color table. In ImageReady, you can select a color from another application, such as a Web page displayed in a browser.

To select a color from the optimized image:

1Select the eyedropper tool in the Save for Web dialog box (Photoshop) or the toolbox (ImageReady).

2Click a color in the image. A white border appears around that color in the color table. Shift-click to select additional colors.

To select a color from another application (ImageReady):

(ImageReady) Select the eyedropper tool, click in the image, hold the mouse down, and drag anywhere on the desktop. You can use this option to select a color displayed in another application, such as a color in a Web page displayed in a browser.

To select a color directly in the color table:

Click the color in the Color Table palette.

To select a contiguous group of colors, press Shift and click another color. All colors in the rows between the first and second selected colors are selected.

To select a discontiguous group of colors, press Ctrl (Windows) or Command (Mac OS) and click each color that you want to select.

To select colors based on a selection in the image (ImageReady):

1Make a selection in the image using the selection tools or the Select menu commands.

2Choose Select All From Selection from the Color Table palette menu.

To select all colors:

Choose Select All Colors from the Color Table palette menu.

To select all Web-safe colors:

Choose Select All Web Safe Colors from the Color Table palette menu.

To select all non-Web-safe colors:

Choose Select All Non-Web Safe Colors from the Color Table palette menu.

To view selected colors in an image (ImageReady):

Select the optimized image. Then click and hold a selected color in the Color Table palette to temporarily invert the color in the optimized image, enabling you to see which areas of the image contain the color.

To view a contiguous group of colors, press Shift and click and hold another color. All colors in the rows between the first and second selected colors are inverted.

Using Help | Contents | Index

Back

434

Соседние файлы в папке Adobe Photoshop 7.0
  • #
    26.03.2015665 б14serial.txt
  • #
    26.03.2015519.46 Кб14Setup.bmp
  • #
    26.03.2015250 б13SETUP.INI
  • #
  • #
    26.03.201549 б24setup.lid
  • #
    26.03.201513.48 Mб22User Guide.pdf
  • #
    26.03.2015296.67 Кб11_INST32I.EX_
  • #
    26.03.2015175.47 Кб12_sys1.cab
  • #
    26.03.20156.55 Кб11_sys1.hdr
  • #
    26.03.20152.95 Mб11_user1.cab
  • #
    26.03.20159.72 Кб12_user1.hdr