Sub topic 2
Creating and releasing a clipping mask
This chapter assumes you already know the Layers panel, how to select and reorder layers, and the difference between pixel, shape, and type layers. It also assumes you know what opacity and blend modes do. You will learn the three ways to create a clipping mask, the three ways to release one, and the errors that most often get in the way.
What a clipping mask does
A clipping mask makes one layer visible only where another layer has pixels. The layer that supplies the shape is the base layer. The layers that are limited by it are the clipped layers. The base layer is always the lowest layer in the clipping group, and each clipped layer sits above it.
Nothing is deleted. The clipped layer keeps all of its pixels. Photoshop only hides the parts that fall outside the base layer's shape. You can release the mask later and the full layer comes back.
A clipping mask is a relationship between layers, not a new layer or a new file object. The relationship depends on stack order, which the previous chapter covered. If you move a layer to a different position, you can change which layers are clipped.
Setting up a practice file
To follow along, build a small document.
- Create a new document, for example 1200 by 800 pixels at 72 ppi.
- Draw a shape with the Ellipse tool (U). Any fill color works. Name the layer
Base. - Place a photo or fill a new pixel layer with a gradient above it. Name the layer
Content. - Make sure
Contentis directly aboveBasein the Layers panel.
The Content layer should cover the whole canvas. Right now you see only Content, because it hides the shape below it.
Three ways to create a clipping mask
All three methods give the same result. Select the layer that will be clipped first. In each method, the layer directly below it becomes the base.
Method 1: the Layer menu
- Select
Content. - Choose Layer > Create Clipping Mask.
Method 2: the keyboard shortcut
Select Content and press Ctrl+Alt+G on Windows or Cmd+Option+G on macOS. The same shortcut releases the mask when the selected layer is already clipped. It works as a toggle.
Method 3: Alt/Option-click between layers
- Hold Alt (Windows) or Option (macOS).
- Move the pointer over the thin line between
ContentandBasein the Layers panel. - When the cursor changes to a small square with a down-pointing arrow, click.
This method is fast once you are used to it, and it lets you choose exactly which pair of layers to link. It also works on a layer that is not currently selected.
What you should see
After clipping, three things change in the Layers panel:
Contentmoves slightly to the right and shows a small arrow pointing down at the layer below it.- The name of the
Baselayer gains an underline. This marks it as the base of a clipping group. - On the canvas, the photo or gradient now appears only inside the ellipse.
If none of these happens, the mask was not created. See the errors section below.
| Method | Shortcut or action | Best used when |
|---|---|---|
| Layer menu | Layer > Create Clipping Mask | You are learning, or you prefer menus |
| Keyboard | Ctrl+Alt+G / Cmd+Option+G | You are working quickly, one layer at a time |
| Alt/Option-click | Click the line between two layers | You want to pick the pair visually |
Clipping more than one layer
You can stack several layers above one base. Each one is clipped to the same base.
To clip several layers at once, select them all (Ctrl/Cmd-click each name, or Shift-click a range) and run Layer > Create Clipping Mask. Photoshop clips them all to the layer below the lowest selected layer. You can also create the mask for the first layer and then Alt/Option-click the line above the next layer to extend the group.
Order inside the group still matters. Each clipped layer is composited in stack order, so a clipped layer higher in the group can cover or blend with the clipped layers below it.
Releasing a clipping mask
Releasing a mask removes the clipping relationship. The layers and their pixels are unchanged.
Method 1: the Layer menu
Select a clipped layer and choose Layer > Release Clipping Mask.
Method 2: the keyboard shortcut
Select a clipped layer and press Ctrl+Alt+G or Cmd+Option+G.
Method 3: Alt/Option-click again
Alt/Option-click the line between the clipped layer and the layer below it. The same gesture that creates the mask removes it.
What happens to layers above the one you release
Releasing affects the selected layer and every clipped layer above it in the group. Layers below it stay clipped to the base. This is a common surprise.
Consider a group with a base and three clipped layers: A (lowest), B, and C (highest). The table shows the result of releasing each one.
| Layer you release | Result |
|---|---|
| `C` | `C` is free. `A` and `B` stay clipped. |
| `B` | `B` and `C` are free. `A` stays clipped. |
| `A` | `A`, `B`, and `C` are all free. |
To remove the whole group, release the lowest clipped layer. Releasing the base layer itself is not possible, because the base is not a clipped layer. Selecting the base and pressing the shortcut does nothing useful. It may instead try to clip the base to whatever is beneath it, which is a different action.
Changing the base layer
You can swap or move the base without breaking the mask, as long as you understand the rules.
- Move the base: Use the Move tool on the base layer. The clipped layers stay in place, but the visible region follows the base. Link the layers (select them and click the link icon) if you want them to move together.
- Replace the base content: Edit, transform, or repaint the base. The mask updates immediately.
- Change the base layer's stack position: If you drag a base layer to another place, the layers above it are clipped to whatever now sits below them. Dragging can accidentally attach or detach layers from a group.
Drag a layer out of the middle of a clipping group, and Photoshop may release it, because it no longer sits between the base and the other clipped layers. Dropping a layer into the middle of a group usually adds it to the group.
Limits and edge cases
- Hidden base: If you turn off the eye icon on the base layer, the whole clipping group disappears from the canvas. The clipped layers do not show without the base.
- Empty base: A base with no pixels in the area gives nothing to show. A new empty pixel layer used as a base hides every clipped layer.
- Soft edges: If the base has feathered or semi-transparent edges, the clipped content fades in the same way. Partial transparency gives partial visibility.
- Layer groups: A layer group can be clipped, and a group can also be a base. A group clipped to a base is treated as one unit. Be aware that a group's blend mode setting (Pass Through or a normal blend) changes how its contents interact with what is below.
- Smart Objects: Clipping works the same on Smart Objects, and the clip stays live when you edit the object's contents.
- Background layer: The Background layer cannot be clipped, and it cannot be moved above other layers until you convert it with a double-click and rename it. A locked Background is often the reason the command is unavailable.
Common errors
| Symptom | Likely cause | Fix |
|---|---|---|
| Create Clipping Mask is greyed out | The selected layer is the bottom layer, or it is the Background layer | Convert the Background layer to a normal layer, or select a layer that has another layer below it |
| Nothing appears after clipping | The base layer has no pixels, or it is hidden | Turn on the base's eye icon and check that it contains content |
| The wrong layers are clipped | The stack order is not what you expected | Reorder so the intended base is directly below the content, then clip again |
| The whole group vanishes after releasing one layer | You released a lower layer, which freed those above it | Undo, and release only the top clipped layer |
| The Alt/Option-click does nothing | The pointer was not exactly on the dividing line, or the layer was a base | Hover until the cursor icon changes before clicking |
Verify what you built
Do this once to confirm you understand the toggle behavior.
- With
Contentclipped toBase, press Ctrl+Alt+G (Cmd+Option+G). The photo should return to full size. - Press the shortcut again. The mask should come back.
- Hide
Baseand confirm thatContentdisappears too. - Show
Baseagain, and move it with the Move tool. Watch the visible region follow the shape while the photo stays put.
This last step shows the central idea of the chapter: the base layer decides where the content is visible, but the content does not move with it unless you link them.
Exercise
A clipping group has a base layer and three clipped layers, listed from bottom to top: Texture, Color Fill, and Highlights. You select Color Fill and choose Layer > Release Clipping Mask. Which layers are still clipped to the base, and how can you free all of them at once?
Show answer
Only Texture is still clipped. Releasing Color Fill also frees every clipped layer above it, so Highlights is released too. To free all three at once, release the lowest clipped layer, Texture.
Exercise
You press Ctrl+Alt+G (Cmd+Option+G) with the base layer selected, hoping to remove the clipping mask, and the base shape now disappears from view. What probably happened, and what is the quickest fix?
Show answer
The base layer was not a clipped layer, so the shortcut tried to clip it to the layer below it, and it is now limited by that layer's shape. Press Ctrl+Z (Cmd+Z) to undo. Then select the lowest clipped layer above the base and use the shortcut there.