Sub topic 2
Working non-destructively with adjustment layers and masks
This chapter assumes you can open, save and export images in Photoshop, and that you know the basics of the Layers panel: stacking, reordering, toggling visibility and changing opacity. You also need to be comfortable with the idea that every pixel has a brightness and a colour, expressed as RGB values from 0 to 255.
By the end you will know how adjustment layers store a grade as editable instructions, how layer masks control where those instructions apply, and how to set up a document so every later Curves and Gradient Map step stays reversible.
Destructive versus non-destructive editing
A destructive edit changes the pixels of a layer. If you choose Image > Adjustments > Curves and press OK, Photoshop rewrites the pixel values. You can undo through the History panel for a while, but once you save, close and reopen the file, the original values are gone.
A non-destructive edit leaves the pixels alone and stores the adjustment as a separate recipe. Photoshop applies that recipe on the fly when it displays the image. You can reopen it, change a setting, lower its opacity, hide it or delete it at any time, even months later, as long as you keep the layered file.
An adjustment layer is that recipe. It sits above one or more pixel layers and changes how everything beneath it looks, without touching those layers.
| Approach | What changes | Can you edit it later? | File size cost |
|---|---|---|---|
| Image > Adjustments > Curves | The pixels of the active layer | No, only via undo or History | None |
| Curves adjustment layer | Nothing in the pixels; a stored recipe is added | Yes, any time | Small |
| Smart Filter (on a Smart Object) | Nothing in the pixels | Yes, any time | Larger (embedded copy of the image) |
For grading, adjustment layers are the standard choice because every Curves and Gradient Map step in this tutorial is available as one.
Creating an adjustment layer
There are two common ways.
- Click the half-filled circle icon at the bottom of the Layers panel, then choose Curves or Gradient Map from the menu.
- Choose Layer > New Adjustment Layer > Curves. This opens a dialog where you can name the layer first.
Photoshop adds the new layer above the layer that was selected, opens the Properties panel with the controls, and attaches a white layer mask to it. The Properties panel is where you edit the adjustment. If it is closed, double-click the adjustment layer's thumbnail to bring it back.
Name your layers as you create them. A stack called "Curves 1", "Curves 2", "Gradient Map 1" becomes unreadable after a few steps. Names such as "Contrast S-curve", "Warm highlights" and "Teal shadows map" tell you what each layer does.
Layer order matters
Photoshop calculates the stack from the bottom up. Each adjustment layer receives the result of everything below it and passes its own result upward.
This means that the same two adjustments in a different order can produce different images. A Curves layer that brightens the image before a Gradient Map changes which brightness values the map sees, and therefore which colours it assigns. A Curves layer placed after the map changes the colours the map produced.
A sensible default order for grading is:
- Tonal corrections first (exposure, contrast, black and white points).
- Colour work next (per-channel curves, split toning).
- Stylistic layers last (a Gradient Map at reduced opacity, or in a blend mode).
You can drag layers to reorder them at any time, which is the main reason to keep grading non-destructive.
Clipping an adjustment to one layer
By default, an adjustment layer affects every layer below it. If your document has a background photo and a logo on a separate layer, a Curves layer placed above both changes both.
To limit an adjustment to the single layer directly beneath it, use a clipping mask. Click the small square-with-arrow icon at the bottom of the Properties panel, or Alt-click (Windows) or Option-click (Mac) the line between the two layers in the Layers panel. The adjustment layer indents and shows a downward arrow, and it now affects only that layer.
You can instead group several layers and set the group's blend mode to Normal, then place the adjustment layer inside or above the group. Be aware that a group in its default Pass Through mode lets adjustments flow through, while Normal mode isolates the group's contents from layers outside.
Layer masks: controlling where an adjustment applies
A layer mask is a grayscale image attached to a layer. It controls how visible that layer's effect is at each pixel.
- White in the mask means the effect is fully applied.
- Black means the effect is fully hidden.
- Grey means the effect is partly applied. A mid-grey of 50% gives half the effect.
Every adjustment layer is created with a white mask, so the adjustment applies everywhere. The mask is not a separate trick. It is the way adjustment layers are limited to part of an image.
Two points are easy to miss. First, the mask never deletes anything. Painting black on it hides the effect there, and painting white brings it back. Second, a mask works on the adjustment layer, not on the photo, so you can repaint it as often as you like.
Painting on a mask
- Click the mask thumbnail on the adjustment layer so it has a white frame. If the frame is on the left thumbnail, you are editing the adjustment, not the mask.
- Press D to reset the colour swatches to black and white. Press X to swap them.
- Choose the Brush tool (B). Use a soft round brush for natural transitions.
- Paint with black to hide the adjustment, or white to reveal it.
Lowering the brush opacity in the options bar lets you build up an effect gradually. Painting with a low-opacity black over an area gives a partial reduction.
Gradient masks
For skies or vignettes, use the Gradient tool (G) on the mask rather than a brush. Choose the Foreground to Background style with black and white, and drag across the area where the effect should fade out. This gives a smooth, even transition that a brush rarely matches.
Invert, density and feather
The Properties panel offers controls for the selected mask.
| Control | Effect | Typical use |
|---|---|---|
| Density | Sets how strongly the mask hides the effect. At 100% black is fully black. Lower values let some of the effect through in the black areas. | Softening a mask you have already painted, without repainting it |
| Feather | Blurs the edge of the mask. | Hiding the edge of a selection-based mask |
| Invert (Ctrl+I or Cmd+I) | Swaps black and white. | Turning a "reveal" mask into a "hide" mask |
To start with the effect hidden, Ctrl-click or Cmd-click is not needed. Select the mask and press Ctrl+I or Cmd+I to turn it black. Then paint white where you want the adjustment.
Masks from selections
If you make a selection before you create an adjustment layer, Photoshop builds the mask from it: selected areas become white, the rest black. You can also select the mask and use Select > Select and Mask, or load a selection later by Ctrl-clicking or Cmd-clicking a mask thumbnail. Chapter 13 of this tutorial covers luminosity-based selections, which build masks from the brightness of the image itself. For now, you need only the idea that a mask can come from any selection.
A hard-edged selection used as a mask produces a visible cut-out edge, so feather it. Edges in a graded photo should be soft unless the subject has a hard edge too.
Viewing and troubleshooting masks
Seeing the mask itself helps when an effect looks wrong.
- Alt-click or Option-click the mask thumbnail to view the mask as a full grayscale image.
- Shift-click the mask thumbnail to turn it off temporarily. A red X appears over the thumbnail. Shift-click again to turn it back on.
- Press backslash (\\) to show the mask as a red overlay on the image, like a rubylith.
- Alt-click or Option-click the eye icon of the adjustment layer to see the image with only that layer visible. Use this to compare layers by their effect.
Common errors:
- Painting on the wrong thing. If the brush changes the picture colours, you were editing the adjustment layer instead of its mask, or you were on the photo layer. Check which thumbnail has the frame.
- Nothing happens when painting black. The foreground colour might not be black, or the brush opacity or flow might be near zero. Press D, then check the options bar.
- The adjustment affects a layer you did not expect. You forgot to clip it, or it sits above layers that you wanted to keep untouched.
- A mask edge shows a halo. The mask is too hard or the mask and the photo are misaligned. Feather the mask or paint over the edge with a soft brush.
Reducing the strength of a whole layer
Besides the mask, two layer-level controls reduce an adjustment's effect uniformly.
- Opacity blends the adjusted result with what is below. At 60% you get 60% of the effect. This is the quickest way to tone down a grade that is slightly too strong.
- Fill matters less for adjustment layers because they have no pixel content of their own, so in most cases Opacity is the control to use.
A strong adjustment at reduced opacity is not identical to a gentler adjustment at full opacity. With Curves, the first case dilutes the whole curve evenly. The second reshapes the curve. Try both when a grade looks heavy.
Blend modes for adjustment layers
Every adjustment layer has a blend mode menu in the Layers panel. It controls how the layer's result combines with the layers below.
Two modes are especially useful for Curves layers used for one purpose:
- Luminosity applies only the brightness change and keeps the original colours. Use it for a contrast curve so that boosting contrast does not also shift saturation or hue.
- Color applies only the colour change and keeps the original brightness. Use it for a colour-only curve so that tinting does not change how bright the image is.
These modes are an important grading tool and come up again when blending Gradient Maps in a later chapter.
Setting up a grading document
Use this routine at the start of each grade. It takes under a minute and prevents most problems later.
- Open your photo. If it is a raw file, open it through Camera Raw and finish basic exposure fixes there.
- Convert the background to a Smart Object if you plan to make later edits to the pixels, via Layer > Smart Objects > Convert to Smart Object. This keeps the original data embedded.
- Check the document's bit depth under Image > Mode. Choose 16 Bits/Channel for grading work, since steep curves on 8-bit files are more prone to banding.
- Add adjustment layers one purpose at a time, naming each.
- Group related layers, for example "Colour" and "Contrast", and collapse the groups to keep the panel readable.
- Save as PSD or TIFF with layers intact. Export a JPEG copy for sharing, and never overwrite your layered master.
Worked example: a masked Curves layer
Suppose a landscape photo has a sky that is too bright but a foreground that is fine. The steps are:
- Click the adjustment icon in the Layers panel and choose Curves. Name it "Sky darken".
- In the Properties panel, drag the middle of the diagonal line down a little. The whole image darkens.
- Select the layer's mask thumbnail and press Ctrl+I or Cmd+I to turn it black. The darkening disappears.
- Choose the Gradient tool, set the colours to white and black with a Foreground to Background gradient, and drag from the top of the image down to the horizon. The sky now darkens, and the effect fades out before the foreground.
- Alt-click or Option-click the mask thumbnail to check the transition, then Alt-click again to return.
- If the effect is a little strong, lower the layer's Opacity.
At no point have you changed the photo pixels. Delete the layer and the image returns exactly to how it began.
Exercise
You add a Curves adjustment layer to boost contrast. After painting on its mask with black, the photo itself looks unchanged where you painted, and the Curves effect is gone from that area. A colleague asks whether you have erased part of the picture. What is the correct answer, and how would you bring the effect back?
Show answer
No pixels were erased. Black on a layer mask hides the adjustment in that area, and the photo layer underneath is untouched. To restore the effect, paint over the same area with white on the mask, or press Ctrl+I or Cmd+I to invert the mask if you want to swap everything. You can also Shift-click the mask thumbnail to disable the mask temporarily and see the full effect.
Exercise
Your stack has a Gradient Map above a contrast Curves layer. You move the Curves layer above the Gradient Map and the colours change. Why does the order change the result, and which order should you generally use for tonal work followed by stylistic colour?
Show answer
Layers are evaluated from the bottom up, and each layer receives the result of the layers below it. A Gradient Map assigns colours based on the brightness it receives, so a contrast curve beneath it changes which brightness values are mapped to which colours. A curve above it instead reshapes the colours the map already produced. For tonal work followed by stylistic colour, put the tonal Curves layers below and the Gradient Map above.