Replacing colors in an image
With the Replace Color command, you can create temporary masks based on specific colors and then replace these colors. (A mask isolates an area of an image, so that changes affect just the selected area and not the rest of the image.) The Replace Color dialog box contains options for adjusting the hue, saturation, and lightness components of the selection: Hue is color, saturation is the purity of the color, and lightness is how much white or black is in the image.
You’ll use the Replace Color command to change the color of the wall at the top of the image. The Replace Color command is not available in ImageReady.
- Select the Rectangular Marquee tool (<), and draw a selection border around the blue wall at the top of the image. Don’t worry about making a perfect selection, but be sure to include all of the blue wall.
- Choose Image > Adjustments > Replace Color to open the Replace Color dialog box.
By default, the Selection area of the Replace Color dialog box displays a black rectangle, representing the current selection.
Notice the three Eyedropper tools in the Replace Color dialog box. One selects a single color; another selects additional colors and adds them to the color selection; the third selects colors and removes them from a color selection.
A. Single-color Eyedropper tool
B. Eyedropper Plus tool
C. Eyedropper Minus tool
- Using the first (single-color) Eyedropper tool () in the Replace Color dialog box, click anywhere in the blue-wall area of the image window to select all of the area with that color.
- In the Replace Color dialog box, select the Eyedropper Plus tool (), and use it to select other areas of the blue wall until the entire wall shape is highlighted in white in the dialog box.
- Adjust the tolerance level by scrubbing, dragging the Fuzziness slider, or typing 80.
Fuzziness controls the degree to which related colors are included in the mask.
- If there are any white areas of the mask display in the dialog box that are not part of the wall and therefore should not be included, fix those now: Select the Eyedropper Minus tool () and click those areas in either the image window or the Replace Color dialog box to remove most of the white. (It’s OK if a few pixels in the shadowed window inset remain in the selection.)
- In the Replacement area of the Replace Color dialog box, drag the Hue slider to –40, the Saturation slider to –45, and leave the Lightness slider at 0.
As you change the values, the color of the wall changes in hue, saturation, and lightness, so that the wall is now a slaty green color.
- Click OK to apply the changes.
- Choose Select > Deselect, and then choose File > Save.