Sub topic 13
Grading parts of an image with masks and luminosity selections
This chapter assumes you can create Curves and Gradient Map adjustment layers, you know the Layers panel, and you can read a histogram. It covers restricting a grade to part of an image with layer masks, and building masks from the image's own brightness (luminosity masks).
Why restrict a grade
A global adjustment layer affects every pixel. That is often wrong for a real photo. You may want to warm only the sky, darken a distracting foreground, or add teal to the shadows without touching skin. Every adjustment layer has a built-in layer mask for this purpose.
A layer mask is a grayscale image attached to a layer. It controls how strongly the layer's effect shows at each pixel:
- White shows the adjustment at full strength.
- Black hides the adjustment completely.
- Grays show it partially. 50% gray gives about half strength.
The mask never changes the pixels of the photo, so you can repaint it at any time.
Painting a mask by hand
When you create a Curves or Gradient Map layer, Photoshop attaches a white mask. Click the mask thumbnail in the Layers panel so it has a highlight border. Then paint on the image:
- Press D to reset the foreground and background colours to black and white.
- Select the Brush tool (B) and set a soft edge (hardness 0–30%) so the effect fades in naturally.
- Paint with black to hide the adjustment, or with white to bring it back. Press X to swap the two colours.
- Lower the brush Opacity or Flow to build the effect gradually.
To start with the adjustment hidden and paint it in, select the mask and press Ctrl+I (Windows) or Cmd+I (Mac) to invert it to black. Then paint with white where you want the grade.
Gradients as masks
For skies and vignettes, a gradient is faster and smoother than a brush. With the mask selected, choose the Gradient tool (G) with the Foreground to Transparent or Black, White preset, and drag across the transition area. The mask gets a smooth ramp, so the grade fades out gradually and avoids a visible edge.
Softening a mask
If a mask edge looks hard, open the Properties panel with the mask selected. The Feather slider blurs the mask edge. Density controls how strong the mask is overall, so a Density of 70% means black areas still let 30% of the adjustment through. Both are non-destructive.
Masks from selections
If the area you want has a clear shape, such as a person or a building, make a selection first, then add the adjustment layer. Photoshop turns the active selection into the mask automatically.
- Select Subject or Select Sky (in the Select menu) give a fast starting point.
- The Quick Selection and Lasso tools work for simple shapes.
- Use Select and Mask to refine hair and soft edges.
Before you grade, feather the selection by 1–5 pixels or more, depending on the image size. A razor-sharp mask edge usually looks like a cutout.
Luminosity masks
A luminosity mask is a mask built from the image's own brightness. Bright pixels become white in the mask and dark pixels become black, so the adjustment affects only the highlights, the shadows, or the midtones. This matches how colour grading is usually described: "cool the shadows, warm the highlights." Luminosity masks make that separation smooth instead of dependent on a hand-painted shape.
Method 1: Select and Mask-free quick luminosity selection
The fastest method uses a built-in shortcut:
- Click the composite RGB channel in the Channels panel while holding Ctrl (Windows) or Cmd (Mac). This loads the image's brightness as a selection. Bright areas are selected most strongly, and dark areas least.
- Go back to the Layers panel and add a Curves or Gradient Map adjustment layer.
The selection becomes the layer's mask. The adjustment now applies in proportion to brightness, so highlights are affected most.
To target the shadows instead, invert the mask with Ctrl+I / Cmd+I once the layer is created. Shadows then become white in the mask.
Method 2: Blend If
Blend If is a different approach. It is a setting on the layer itself, not a mask. Double-click an adjustment layer to open Layer Style, then find Blend If at the bottom. The Underlying Layer slider controls where the adjustment shows, based on the brightness of the layers below.
Hold Alt (Windows) or Option (Mac) while dragging a slider triangle. This splits it in two, which creates a gradual transition. A split slider avoids harsh edges.
| Feature | Painted or selection mask | Luminosity mask | Blend If |
|---|---|---|---|
| Based on | Your brush or selection | Image brightness | Image brightness |
| Shows in Layers panel | Mask thumbnail | Mask thumbnail | No visible thumbnail |
| Easy to edit by painting | Yes | Yes | No |
| Setup speed | Medium | Fast | Fast |
| Can be combined | Yes | Yes | Yes, alongside masks |
Blend If is quick, but you cannot paint on it afterwards. A luminosity mask lives as real pixels, so you can refine it with brushes and Curves.
Refining a luminosity mask
The raw brightness mask is soft. It affects midtones more than you may want. For a tighter result, you can adjust the mask itself, since it is only an image.
With the mask selected, open Image > Adjustments > Curves, or use Levels. Both work directly on the mask.
- To confine the effect to the brightest areas, drag the black point of Levels on the mask inward so that mid-grays go black.
- To confine it to the shadows, invert the mask first, then tighten it the same way.
- To make a midtone mask, multiply the shadow and highlight masks and invert the result. Doing this with channel operations is possible, but a simpler route is to paint out the extremes by hand.
Note that using Image > Adjustments on a mask changes the mask's pixels destructively. If you want to keep it flexible, keep a copy of the mask or use a separate adjustment layer clipped over a duplicated mask layer.
Worked example: split-tone with luminosity masks
Suppose you want warm highlights and teal shadows with a Gradient Map, but you want different strengths for each.
- Add a Gradient Map layer with a warm gradient (dark orange to cream). Set its blend mode to Soft Light and opacity to 40%.
- Ctrl/Cmd-click the RGB channel to select brightness, then, with the Gradient Map layer's mask selected, fill the selection with white. If the mask was already white, delete and re-add it.
- Add a second Gradient Map layer with a teal gradient (deep teal to light cyan). Set it to Soft Light too.
- Select its mask and invert it so that the shadows are white.
- Reduce the opacity of each layer until neither dominates.
Because each layer has its own mask, you can adjust the strength of the shadow tint without affecting the highlights.
The flow looks like this:
Common problems
- Halos around edges. A mask that is too sharp or poorly feathered shows a light or dark rim. Feather the mask or soften it in the Properties panel.
- Mask edits affect the wrong thing. If you paint and the photo changes, you painted on the layer pixels, not the mask. Check that the mask thumbnail has the border.
- Banding in smooth areas. Heavy mask adjustments combined with strong grades can show steps in skies. Work in 16-bit mode and add a little noise if needed.
- Skin tones shift in a luminosity mask. Skin sits in the midtones to highlights, so a highlight tint will colour faces. Paint black on the face in the mask, or lower the layer opacity.
- Mask looks right at one zoom but wrong at another. Check at 100% as well as the fit-to-screen view.
You can view a mask directly by holding Alt / Option and clicking its thumbnail. This shows the mask in grayscale on the canvas. Alt/Option-click again to return. Use it to check for gaps and rough edges.
Summary
Masks decide where a grade applies. Paint or gradient masks suit shapes and transitions, selections suit distinct objects, and luminosity masks or Blend If suit tonal ranges. Soften every mask edge, check the mask with Alt/Option-click, and keep everything on adjustment layers so you can revise it later.
Exercise
You want to cool only the shadows of a photo with a Curves layer, and keep the highlights unchanged. Describe how you would build the mask, and name one setting that prevents harsh edges between the shadows and the rest.
Show answer
Ctrl/Cmd-click the RGB channel in the Channels panel to load a brightness selection, then add the Curves layer so the selection becomes its mask. Invert the mask with Ctrl/Cmd+I so the shadows are white and the highlights are black. To avoid harsh edges, soften the mask with the Feather slider in the Properties panel (or use a split Blend If slider by holding Alt/Option while dragging).
Exercise
A Gradient Map layer with a luminosity mask is tinting a person's face when you only wanted the sky tinted. What are two ways to fix this without deleting the layer?
Show answer
First, paint with a soft black brush on the layer mask over the face to hide the adjustment there. Second, lower the layer opacity, or tighten the luminosity mask with Levels or Curves so only the brightest sky areas remain white. You could also combine the luminosity mask with a Select Sky selection.