Sub topic 9
Linking, Disabling, Inverting and Deleting Masks
Assume you can create a layer mask, select its thumbnail, and paint with the Brush tool. This chapter focuses on managing an existing layer mask without accidentally changing the layer’s pixels.
A layer mask controls which parts of a layer are visible. The mask thumbnail appears beside the layer thumbnail in the Layers panel. A white border around the mask thumbnail means the mask is active. Any editing command, such as painting or inverting, affects the mask when this thumbnail is selected.
Link a layer to its mask
By default, the layer and its mask are linked. A chain icon appears between their thumbnails. When they are linked, moving the layer also moves the mask. This keeps the mask aligned with the image content.
Click the chain icon to unlink the layer and mask. You can then move or transform one without moving the other.
For example, unlink a portrait layer from its mask when you want to reposition the portrait inside a fixed-shaped reveal. Select the layer thumbnail to move the image. Select the mask thumbnail to move the visible area.
| State | What happens when you move the layer |
|---|---|
| Linked | The layer and mask move together |
| Unlinked | Only the selected layer or mask moves |
Click the space between the thumbnails, or click the chain icon if it is visible, to link them again.
Disable a mask temporarily
Disabling a mask lets you compare the masked and unmasked versions without deleting the mask.
Right-click the mask thumbnail and choose Disable Layer Mask. Photoshop displays a red X over the mask thumbnail, and the full layer becomes visible. The mask remains stored and unchanged.
To enable the mask again, right-click the thumbnail and choose Enable Layer Mask. You can also hold Shift and click the mask thumbnail to toggle it in many Photoshop versions.
Use this comparison when checking whether the mask is causing an unwanted edge, color change, or missing detail.
Invert a mask
Inverting a mask reverses its grayscale values:
- White becomes black.
- Black becomes white.
- Gray values are reversed.
Select the mask thumbnail, then choose Image > Adjustments > Invert or press Ctrl+I on Windows or Command+I on macOS.
Inverting is useful when you created the opposite of the result you wanted. For example, a selection may reveal the sky when you intended to reveal the foreground. Inverting the mask switches the visible and hidden areas.
Make sure the mask thumbnail is active before using the shortcut. If the layer thumbnail is active, Photoshop can invert the image pixels instead.
Delete or apply a mask
Deleting a mask removes the mask but leaves the layer itself intact. Right-click the mask thumbnail and choose Delete Layer Mask, or drag the mask thumbnail to the trash icon. Choose Delete when Photoshop asks whether to apply or discard the mask.
Applying a mask permanently removes the hidden pixels from a normal pixel layer. Right-click the mask and choose Apply Layer Mask. The mask disappears, and only the currently visible pixels remain.
Applying is useful when the masked result is final or when a later operation requires a simpler layer. It is destructive, so save a copy of the original layer first.
A safe management routine
- Duplicate the layer before applying a mask.
- Confirm that the mask thumbnail, not the layer thumbnail, is selected.
- Disable the mask to diagnose problems before repainting it.
- Keep important masks linked unless independent movement is intentional.
- Delete a mask when you want the layer restored, not when you want to remove hidden pixels permanently.
Exercise
You need to move the image inside a fixed masked shape, then reverse which areas are visible. What should you do?
Show answer
Unlink the layer and mask, select the layer thumbnail to move the image, select the mask thumbnail, and invert the mask with Ctrl+I on Windows or Command+I on macOS.