Sub topic 9
Clipping an Adjustment to a Single Layer
This chapter assumes you can create adjustment layers, edit them in the Properties panel, and paint on a layer mask. Those topics come from the earlier chapters on adjustment layer basics and layer masks. You should also be comfortable with the Layers panel: stacking order, layer visibility, and grouping.
The problem clipping solves
By default, an adjustment layer affects every layer beneath it in the stack. That is usually what you want for a global correction. It becomes a problem when your document has several layers and you want to change only one of them.
Suppose you have a portrait on a background layer, a separate cutout of a red scarf above it, and a sky replacement behind both. A Hue/Saturation layer placed at the top shifts the hue of everything. You could paint a mask to confine it to the scarf, but that mask is tied to the scarf's current position and shape. If you move the scarf, the mask stays where it was.
Clipping solves this by tying the adjustment to the layer directly below it. The adjustment then affects only that layer, and only where that layer has visible pixels.
What clipping does
A clipped adjustment layer takes its boundaries from the base layer, which is the layer directly beneath it. Two things change:
- The adjustment no longer reaches layers below the base layer.
- The adjustment is limited to the base layer's opaque and partly transparent pixels. Where the base layer is fully transparent, the adjustment has no effect.
In the Layers panel, a clipped layer is indented and shows a small downward-pointing arrow beside its thumbnail. The base layer's name is underlined.
The effect is the same as if you had applied the adjustment to the base layer alone, except nothing is baked in. You can still edit or delete the adjustment at any time.
How to clip an adjustment
There are several ways to do it. Use whichever fits your habits.
- From the Properties panel. With the adjustment layer selected, click the clipping button at the bottom of the Properties panel. It looks like a square with a downward arrow. Click it again to release the clip.
- From the Layers panel menu. Right-click the adjustment layer and choose Create Clipping Mask. Choose Release Clipping Mask to undo it.
- With the keyboard. Select the layer and press
Alt+Ctrl+Gon Windows orOption+Cmd+Gon macOS. The same shortcut releases the clip. - By dragging. Hold
Alt(Windows) orOption(macOS) and hover over the line between the adjustment layer and the layer below it. The pointer changes to a clipping icon. Click to clip. - At creation time. Hold
AltorOptionwhile clicking the Create New Adjustment Layer button. In the dialog, tick Use Previous Layer to Create Clipping Mask. This clips the new layer as soon as it exists.
The adjustment layer must sit directly above the layer you want to affect. If it is higher in the stack, drag it down first, then clip.
Seeing the effect in a stack
The diagram below shows a stack with an unclipped and a clipped adjustment. The top Curves layer is global. The Hue/Saturation layer is clipped to the scarf.
In the Layers panel, the order from top to bottom would read Curves, Hue/Saturation, Scarf, Portrait, Sky. The Curves layer still reaches all of them, because it is not clipped.
Clipping versus masking
Clipping and masking both limit where an adjustment applies, but they work differently. They are not mutually exclusive.
| Aspect | Layer mask | Clipping |
|---|---|---|
| What defines the area | Pixels you paint in the mask | The base layer's transparency |
| Follows the layer if it moves | No, unless the mask is linked to a layer you move | Yes, because the base layer defines the area |
| Soft edges | You paint or feather them | Inherited from the base layer's own edge softness |
| Needs painting | Yes | No |
| Best for | Arbitrary regions inside a layer | "Only this layer, wherever it is" |
Use clipping when the right boundary already exists as a layer's shape. Use a mask when the boundary is something you need to draw.
You can combine them. A clipped adjustment can have its own mask, which then refines the area inside the base layer. For example, clip a Curves layer to a skin retouching layer, then mask out the eyes.
Clipping and the base layer's transparency
Clipping follows the base layer's alpha, which is its transparency information. This has consequences you should check before relying on it.
- Partial transparency. If the base layer has a feathered edge, the adjustment fades out with it.
- Layer opacity. The base layer's Opacity slider does not change how strongly the clipped adjustment applies. Opacity makes the base layer see-through, and the adjustment still shows at full strength on the remaining pixels. The relationship between Fill and Opacity is a separate topic, but note that lowering the base layer's opacity lowers the visibility of the adjusted result too, because the whole clipped group blends with what is below.
- Hidden base layer. If you hide the base layer, the clipped adjustment disappears with it. This is correct behavior, and it makes it easy to toggle a retouched element on and off as a unit.
- Layer styles. A drop shadow or stroke on the base layer is not included in the clipping boundary. Only the layer's pixels count.
Clipping several adjustments to one layer
You can clip more than one adjustment to the same base layer. Place them one above another, all directly above the base layer, and clip each one. They all attach to the same base.
The Layers panel shows them indented in a column under the base layer's name. Each adjustment applies in order, from the lowest to the highest, to the base layer's pixels only.
This is a clean way to build a non-destructive retouch on a single element. For a product cutout, you might clip a Levels layer to set contrast, a Hue/Saturation layer to tone down a color, and a Curves layer to add depth. Delete or hide any one without affecting the others.
The Pass Through problem
Clipped layers use a blend behavior that affects the stack. When you clip layers to a base layer, the base layer's blend mode decides how the clipped group interacts with the layers below. This is controlled by the Blend Clipped Layers as Group option in the Layer Style dialog, under Advanced Blending.
- When it is on, which is the default, the base layer's blend mode applies to the whole clipped group. The adjustments inside are blended first, and the group is then blended into the stack using the base layer's mode.
- When it is off, the adjustment layers keep their own blend modes and apply them to everything beneath, including layers outside the clip.
If a clipped adjustment with a blend mode other than Normal looks wrong, check this option. It is the most common cause of confusing clipped results.
Clipping inside groups
Groups interact with clipping in ways that catch people out.
- If you clip an adjustment to a layer inside a group, the adjustment must be inside the same group, directly above its base layer.
- You cannot clip an adjustment to a group itself in the same way you clip to a layer. If you want one adjustment to affect a whole group of layers, do not clip. Place the adjustment above the group, inside the group at the top, or on a group with Pass Through mode.
- A group set to Pass Through lets adjustment layers inside it affect layers below the group. A group set to Normal confines the adjustment layers inside it to the group's contents. This is another way to limit an adjustment to a set of layers without clipping.
Clipping and a pixel-level view
The adjustment still runs the same math you saw in the Levels and Curves examples. Clipping only changes which pixels are fed into it. Conceptually, you can think of the clipped adjustment as a function applied only where the base layer has coverage, with the result blended by the base layer's alpha:
def apply_clipped(adjust, base_value, base_alpha, below_value):
"""Blend an adjusted base-layer value over what lies beneath it.
adjust: function mapping one 8-bit value to a new 8-bit value
base_value: the base layer's pixel value (0-255)
base_alpha: the base layer's coverage (0.0 to 1.0)
below_value: the composite value from layers below the base layer
"""
adjusted = adjust(base_value)
return round(base_alpha * adjusted + (1.0 - base_alpha) * below_value)
invert = lambda v: 255 - v
# Fully opaque pixel: the adjustment fully replaces the base value.
assert apply_clipped(invert, 100, 1.0, 40) == 155
# Fully transparent pixel: the layers below show through unchanged.
assert apply_clipped(invert, 100, 0.0, 40) == 40
# Half-covered edge pixel: the result is a blend of the two.
assert apply_clipped(invert, 100, 0.5, 40) == 98This is a simplified model of the logic. Photoshop works on full color channels and honors blend modes, but the principle holds: where alpha is 0, the adjustment contributes nothing.
Common errors
- The adjustment still affects everything. The layer is not actually clipped. Look for the indent and arrow. If they are missing, the clip did not take.
- The clip option is greyed out. There is no layer beneath the adjustment, or the layer below is the Background layer in a position where the clip would have nothing to attach to. Convert the Background layer to a normal layer if needed.
- The adjustment affects nothing. The base layer may be empty, hidden, or the adjustment may be clipped to the wrong layer. Check which layer has the underlined name.
- Moving the base layer leaves a clipped layer behind. Clipped layers move with their base only when both are selected or linked. Select the adjustment and the base together before using the Move tool, or link them. Adjustment layers have no pixels, so the position of the adjustment itself rarely matters, but a mask on a clipped layer does.
- The adjustment is clipped to the wrong layer after reordering. Dragging layers can move a clipped layer out of its group of clipped layers or attach it to a new base. Check the indent after any reorder.
- A clipped layer in Pass Through behaves oddly. Pass Through is a group-only mode. Clipped adjustment layers use Normal or another blend mode, and the Blend Clipped Layers as Group setting governs the rest.
Choosing between clipping, masking, and groups
Use this as a short decision guide.
- Does the target region match a layer's shape exactly? Clip.
- Does it need a custom shape inside or across layers? Mask.
- Does one adjustment need to cover several layers but not the entire stack? Put the layers in a Normal-mode group and place the adjustment inside, above them.
- Do you need all of the above? Combine them. A clipped adjustment with a mask is common.
Exercise
Your document has a Background layer, a Logo layer with transparent surroundings, and a Hue/Saturation layer at the top of the stack that you want to change only the logo's color. Describe what to do, and what happens to the Background layer.
Show answer
Drag the Hue/Saturation layer so it sits directly above the Logo layer, then clip it using the Properties panel clipping button, Alt/Option+Ctrl/Cmd+G, or right-click and Create Clipping Mask. The Hue/Saturation layer becomes indented with a downward arrow, and the Logo layer's name is underlined. The adjustment then changes only the Logo layer's visible pixels. The Background layer is unaffected, and the adjustment is still editable at any time.
Exercise
A Curves layer is clipped to a layer called Portrait. It is set to Multiply, and the result looks darker than expected across the whole image, including a texture layer below Portrait. Which setting should you check, and why?
Show answer
Check Blend Clipped Layers as Group under Advanced Blending in the Layer Style dialog of the Portrait layer. If it is off, the clipped Curves layer applies its own Multiply mode to everything beneath it, including the texture layer. Turning it on blends the clipped group using the base layer's mode, so the Multiply effect stays within the Portrait layer's group.