Sub topic 13
Local Adjustments with Brush and Gradient Masks
This chapter assumes you can open the Camera Raw filter on a Smart Object (Filter > Camera Raw Filter), read the histogram, and use the Basic panel. You should also know what a layer mask is in Photoshop. Here you will learn to apply an adjustment to part of an image instead of the whole frame.
Global versus local edits
Everything in the Basic, Color Mixer and Detail panels changes the entire image. A local adjustment changes only the area covered by a mask. A mask is a map of where an edit applies. White areas receive the full edit, black areas receive none, and gray areas receive part of it.
Local adjustments solve problems that global edits cannot. A bright sky and a dark foreground need different exposure. A face needs more softness than the brick wall behind it. A global slider helps one area and hurts another.
In the Camera Raw filter, you open the Masking tool from the toolbar on the right side of the dialog. It offers several mask types. This chapter covers the Brush and the Linear and Radial Gradients. The Subject, Sky and range-based masks are in the next chapter.
The masking workflow
Every local adjustment follows the same loop:
- Create a mask with a tool.
- Refine the mask's shape.
- Set the sliders for that mask.
- Check the result and adjust the mask or the sliders again.
Each mask appears in the Masks panel as its own entry. You can rename it, hide it with the eye icon, and delete it. Each mask holds its own slider values, so a "Sky" mask and a "Face" mask stay independent.
The local slider set
Each mask has its own panel of sliders. These include Exposure, Contrast, Highlights, Shadows, Whites, Blacks, Texture, Clarity, Dehaze, Hue, Saturation, Sharpness, Noise and Color. Many have the same names as the global sliders, but they apply only inside the mask.
Local values are added on top of the global edit. If the global Exposure is +0.50 and a mask has Exposure -0.30, the masked area ends up at +0.20 relative to the original. Keep the global edit as your base and use masks for deviations from it.
The Brush tool
The Brush paints a mask by hand. It suits irregular shapes, such as lighting a face, darkening a distracting corner, or lifting the shadows under a tree.
Brush settings
| Setting | What it does |
|---|---|
| Size | The diameter of the brush. |
| Feather | How soft the edge of the stroke is. Higher values give a gradual falloff. |
| Flow | How much each stroke adds. Low flow builds the mask up slowly with repeated passes. |
| Density | The maximum strength of the mask. At 50, the mask never goes beyond half strength. |
| Auto Mask | Limits painting to areas similar in color and tone to where you started the stroke. |
| Erase | Switches the brush to subtract from the mask. |
Use a large, feathered brush for broad lighting changes. Use a small, harder brush with Auto Mask for objects with clear edges. Paint with a low flow when you want the effect to build gradually.
Painting a mask step by step
- Select the Masking tool, then choose Brush.
- Set Size, Feather and Flow.
- Paint over the area. The shaded overlay shows what the mask covers.
- Hold Alt (Windows) or Option (macOS) to switch temporarily to Erase.
- Use the sliders to apply the edit.
Turn on Show Overlay at the bottom of the Masks panel to see the mask area as a colored tint. Press O to toggle it. If the overlay hides your view of the image, turn it off while adjusting the sliders and back on when editing the mask.
Auto Mask and its limits
Auto Mask detects edges using color and brightness. It works well when the object differs clearly from its background, such as a dark jacket against a light wall. It works poorly on low-contrast edges, such as a gray cat on a gray sofa. In those cases the mask leaks or leaves gaps. Zoom in to 100% and inspect the edges after painting.
Gradient masks
A gradient mask applies an edit that fades smoothly across the image. It suits skies, floors, and anything that changes gradually.
Linear Gradient
The Linear Gradient fades in a straight line. Click and drag from the area that should receive the full effect toward the area that should receive none. The drag distance sets how wide the transition is. A long drag gives a soft blend, and a short drag gives a firmer edge.
Hold Shift while dragging to keep the gradient perfectly vertical or horizontal. This is useful for a level horizon. After creating it, you can drag the center line to move it and drag the end lines to change the falloff. Dragging the outside of the gradient rotates it.
A common use is darkening a bright sky. Drag from the top edge down to just above the horizon, then lower Exposure and Highlights and raise Dehaze slightly.
Radial Gradient
The Radial Gradient creates an elliptical mask. Click and drag outward from the center to draw it. Two settings control its behavior:
- Feather controls how soft the edge of the ellipse is.
- Invert switches whether the effect applies inside or outside the ellipse.
Use it to brighten a face (Invert off) or to darken the surroundings of a subject (Invert on). The result is a hand-placed vignette. Because you place it, it can sit off-center, unlike the Effects panel vignette.
Refining a gradient with Brush
Both gradient types can be modified with a Brush. In the mask's options, use Subtract or Add and choose Brush to paint out areas. For example, a sky gradient also darkens the tops of trees and buildings that cross the horizon. Subtract with a brush using Auto Mask to remove the effect from them.
Combining masks
Each mask in the list can be modified by Add and Subtract operations. You can also use Intersect. The three operations work like this:
| Operation | Result |
|---|---|
| Add | Extends the mask to include a new area. |
| Subtract | Removes an area from the mask. |
| Intersect | Keeps only the area where two masks overlap. |
Intersect is useful for precise control. For example, you can intersect a Linear Gradient with a Luminance Range mask, so that only the bright parts of the sky are affected. The range tools themselves are covered in the next chapter.
Common errors
- Visible halos around edges. A heavy local adjustment on a feathered mask spills past an object's outline. Reduce the slider values, lower Feather, or use Auto Mask near the edge.
- Banding in skies. Strong gradient adjustments on smooth tones can show steps. Lower the strength and add a little grain in the Effects panel.
- Effect too strong overall. Lower the mask's Density in the brush settings or reduce the sliders. Do not compensate by stacking more masks.
- Mask hits the wrong area after cropping. Masks are tied to image positions. If you change geometry after masking, check the overlay again.
- Too many overlapping masks. Overlapping masks add their effects together. Rename masks clearly and delete ones you no longer need.
A worked example
You have a landscape where the sky is bright and the grass is dark.
- Apply global edits first: set Exposure and the white and black points so the overall image looks balanced.
- Open the Masking tool and choose Linear Gradient. Shift-drag from the top edge to the horizon.
- Set Exposure to -0.80, Highlights to -30 and Dehaze to +10.
- Turn on the overlay and check that the gradient reaches the hills. Choose Subtract, then Brush with Auto Mask on, and paint over the hills and trees to remove the darkening.
- Create a new Brush mask on the foreground grass with Feather at 80 and Flow at 40. Set Exposure to +0.40 and Shadows to +25.
- Toggle the preview with the Before/After view to confirm the change looks natural, then click OK.
The result is a balanced image, with each region adjusted for its own lighting.
Exercise
You darken a sky with a Linear Gradient, but the tops of the trees along the horizon also become too dark. Which mask operation fixes this, and which Brush option helps follow the tree edges?
Show answer
Use Subtract with the Brush tool to remove the trees from the gradient mask. Turn on Auto Mask so the brush follows the color and brightness edges of the trees.
Exercise
A mask has Exposure set to -0.30, and the global Exposure is +0.50. What is the net exposure change in the masked area compared with the original image?
Show answer
+0.20 stops. Local values add to the global values.