Sub topic 10
Local adjustments with adjustment layer masks
This chapter assumes you can create a layer mask, paint on it with the Brush tool, and make a selection. It also assumes you know that white reveals, black conceals and gray blends. Here you will apply those skills to adjustment layers, so an edit such as brightening or recoloring affects only part of the image.
Why adjustment layers come with a mask
An adjustment layer is a layer that holds a correction, such as Curves or Hue/Saturation, instead of pixels. It changes how the layers below it look, and it never alters their pixel data. Every adjustment layer is created with a layer mask attached. The mask starts completely white, so the adjustment applies to the whole image.
Here the mask controls where the correction is applied, and nothing is hidden or deleted. Black areas of the mask exempt those pixels from the adjustment. White areas receive the full effect. Gray areas receive a proportional share of it.
This gives you two independent controls:
- The adjustment settings control how much the image changes.
- The mask controls where the change happens.
You can revise either one at any time without affecting the other.
Creating an adjustment layer
- Select the layer or group you want to adjust. The new adjustment layer is placed directly above the selected layer.
- Open the Adjustments panel, or click the half-filled circle icon at the bottom of the Layers panel.
- Choose an adjustment, for example Curves, Levels, Hue/Saturation or Color Balance.
- Set the adjustment in the Properties panel.
The mask thumbnail sits to the right of the adjustment icon in the Layers panel. To edit the mask instead of the adjustment, click the mask thumbnail. A white frame appears around it to show it is the active target.
Limiting an adjustment by painting
The most direct method is to paint on the mask.
- Click the mask thumbnail of the adjustment layer.
- Press D to reset the foreground and background colors to black and white.
- Select the Brush tool (B).
- To remove the effect from an area, paint with black.
- To restore the effect, paint with white. Press X to swap the colors.
Brush settings change the result. A soft brush with low hardness gives gradual edges, which suits lighting changes. A hard brush suits adjustments with a defined boundary, such as recoloring a sign. Lowering Opacity or Flow lets you build up the mask gradually, and this is much more forgiving than a single heavy stroke.
A worked example: darken the sky only
Suppose a landscape photo has a bright sky and a well-exposed foreground. You want to darken only the sky.
- Add a Curves adjustment layer above the photo.
- Drag the center of the curve down to darken the whole image.
- Click the mask thumbnail. Press Ctrl+I (Windows) or Cmd+I (Mac) to invert the mask. It turns black, and the darkening disappears.
- Select a soft white brush at 30 to 50 percent Opacity.
- Paint across the sky. The darkening appears only where you paint.
- Paint with black to correct any overspill onto the horizon or trees.
Starting from a black mask and revealing the effect is often easier to control than starting with white and hiding it. It is especially useful when the effect is strong, and it avoids a jarring first view of the full adjustment.
Because the mask is separate, you can change the Curves shape after painting. The sky stays the only region affected.
Starting from a selection
When the area has a clear boundary, make a selection first. If a selection is active when you add the adjustment layer, Photoshop uses it to build the mask automatically. Selected areas become white and unselected areas become black.
A typical sequence:
- Use Quick Selection, Object Selection or the Lasso to select the region.
- Add the adjustment layer.
- The mask is created from the selection.
A selection with a hard edge gives a mask with a hard edge, and that looks cut out. Soften it in one of two ways:
- Before adding the layer, use Select > Modify > Feather.
- After adding it, use the Feather slider in the Properties panel, with the mask selected. This is usually better because you can adjust it later.
| Approach | Strength | Weakness |
|---|---|---|
| Paint on the mask | Flexible, with gradual control | Slower on precise edges |
| Selection to mask | Fast and accurate on defined shapes | Edges can look harsh until feathered |
| Gradient on the mask | Smooth, natural transitions | Works best for linear or radial falloff |
Using gradients for graduated adjustments
Lighting often changes smoothly across a scene, such as a sky that fades toward the horizon. A gradient on the mask reproduces that.
- Select the mask thumbnail.
- Choose the Gradient tool (G) and set a black-to-white or foreground-to-transparent gradient.
- Drag from where the effect should be fully off to where it should be fully on. A longer drag gives a softer transition.
- Hold Shift to constrain the drag to a straight vertical or horizontal line.
Radial gradients work for vignettes and spotlight effects. Apply a darkening adjustment, then fill the mask with a radial gradient that is black at the center and white at the edges. The center stays untouched and the edges darken.
You can redraw the gradient as many times as you like. Each new drag replaces the mask contents in the area it covers, unless you use a mode that blends with existing values.
Masking groups
You can apply an adjustment to a whole group of layers. Place the adjustment layer above the group in the stack. By default, it affects everything beneath it, not just the group.
To limit the adjustment to one group, set the group's blend mode to something other than Pass Through, such as Normal. This isolates the group so adjustments inside it do not affect layers outside. An adjustment layer placed inside the group then affects only the layers within that group.
You can also add a mask to the group itself. This hides or reveals the group's contents as one unit, and it is faster than masking each layer.
Clipping an adjustment to one layer
A mask limits an adjustment by area. A clipping mask limits it to one layer's pixels and transparency. To clip an adjustment layer:
- Right-click the adjustment layer and choose Create Clipping Mask.
- Or hold Alt (Windows) or Option (Mac) and click the line between the adjustment layer and the layer below.
A small downward arrow appears on the adjustment layer, and it now affects only the layer directly beneath. This is how you color-correct a single object without touching the background. You can still paint on the adjustment layer's own mask for further control, so the two techniques work together.
Combining and refining
Complex edits often need several steps:
- Use several adjustment layers, each with its own mask, instead of one large adjustment. Brightness for the face and saturation for the sky are separate jobs.
- Name each layer by its purpose, such as "Darken sky" or "Warm skin". Long stacks become hard to read without names.
- Use the Density slider in the Properties panel to reduce the whole mask's strength. At 50 percent density, black areas let half the effect through. This is a quick way to dial back an edit without repainting.
- Use Feather to blur the mask's edges uniformly.
- Use Alt-click (Windows) or Option-click (Mac) on the mask thumbnail to view the mask alone as a grayscale image. This exposes stray marks and gaps that are hard to see in the photo. Repeat to return to normal view.
- Copy a mask to another layer by holding Alt or Option and dragging the mask thumbnail onto the target layer. Without the modifier key, the drag moves the mask.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Painting does nothing visible | The adjustment icon is selected, not the mask | Click the mask thumbnail |
| Brush paints in color | Foreground color is not black or white | Press D, then X as needed |
| Effect applies to layers you did not intend | Adjustment is above several layers or the group is Pass Through | Clip the adjustment, or isolate the group |
| Visible halo around a masked area | Mask edge is too hard or misaligned | Add feather, or repaint the boundary with a soft brush |
| Mask looks right but the effect is too strong | Adjustment settings are too extreme | Lower Density or the layer Opacity |
| Mask moves out of line after transforming the layer | The mask is unlinked from the layer | Relink, or transform both together |
Edge cases
- Adjustments that need a mask to be useful. Some adjustments, such as Photo Filter or Gradient Map, are rarely applied to a whole image. Masking them is routine.
- Mask resolution. A layer mask is a grayscale channel. Photoshop stores it at the same pixel dimensions as the document, so painting at high zoom keeps edges precise.
- Color mode. The mask itself is always grayscale, whatever the mode of the image. Painting with a colored brush produces the gray equivalent of that color's brightness.
- Opacity versus Density. Layer Opacity weakens the whole adjustment layer, mask included. Density only changes how strongly the mask's black areas conceal. They produce different results, so choose by what you want to change.
Exercises
Exercise
You add a Curves adjustment layer to brighten a portrait, but the effect lifts the whole image. You want it only on the face. Describe two ways to restrict it with the mask, and say which you would choose if the face has a soft, irregular boundary.
Show answer
First, invert the mask to black (Ctrl/Cmd+I) and paint over the face with a soft white brush at reduced opacity. Second, select the face with a selection tool before adding the adjustment layer, so the mask is built from the selection, and then add Feather in the Properties panel. For a soft, irregular boundary, painting with a soft brush is usually the better choice, because it gives gradual edges without a visible cut-out line. A feathered selection also works if it is refined afterward.
Exercise
You darken a sky with a Curves adjustment layer. Later you decide the effect is too strong everywhere it is applied, but the mask shape is correct. Which control do you use to reduce it without repainting, and how does it differ from lowering the layer's Opacity?
Show answer
Lower the Curves settings themselves, or reduce the layer's Opacity for a uniform reduction. Density in the Properties panel changes how much the mask's black areas hold back the effect, so it does not simply weaken the adjustment where it is fully applied. Opacity scales the whole adjustment, mask included. Choose Opacity here, since the goal is to weaken the effect where it is applied.