Sub topic 3
Creating a Layer Mask
This chapter assumes you can navigate the Layers, Tools, and Properties panels, work with layers, use the Brush tool, and make basic selections with Marquee, Lasso, or Quick Selection tools.
A layer mask controls which parts of a layer are visible. It hides pixels without deleting them, so you can change the mask later. The mask appears as a second thumbnail beside the layer thumbnail in the Layers panel.
Prepare the Layer
Open the image and select the layer you want to control. If the layer is locked, click the lock icon in the Layers panel before editing it. Make sure the correct layer is active. A mask affects its attached layer, not every layer below it.
You can create a mask in three common ways:
- Reveal All creates a white mask. The whole layer remains visible.
- Hide All creates a black mask. The whole layer becomes hidden.
- A selection creates a mask that reveals the selected area and hides the rest.
Click the Add Layer Mask button at the bottom of the Layers panel. It looks like a rectangle with a circle inside. If no selection is active, Photoshop creates a white mask.
Create a Mask from a Selection
A selection defines an area that Photoshop can use when creating the mask.
- Select the layer you want to mask.
- Use a selection tool to select the subject or area you want to keep.
- Check the selection boundary before creating the mask.
- Click Add Layer Mask.
Photoshop converts the selection into a grayscale mask. Selected areas become white and remain visible. Unselected areas become black and become hidden. A partially selected edge can become gray, producing a softer transition.
If you selected the area you want to remove instead, invert the selection before adding the mask. Choose Select > Inverse, or press Shift+Ctrl+I on Windows or Shift+Command+I on macOS. Then add the mask.
Choose Reveal All or Hide All
Use Reveal All when the layer should start fully visible and you plan to hide selected areas manually. This is useful when only a small portion needs removal.
Use Hide All when the layer should start invisible and you plan to reveal one subject or region. This is useful for compositing a cutout or applying an effect to a carefully chosen area.
You can also hold Alt on Windows or Option on macOS while clicking Add Layer Mask to create a black mask instead of a white one.
Check the Result
Look at both thumbnails in the Layers panel. The image thumbnail shows the original layer. The mask thumbnail shows the visibility map. A white outline around the mask thumbnail means the mask is active.
Do not press Delete to remove unwanted areas from the layer. Create or adjust the mask instead. This keeps the original pixels available for later changes.
Exercise
You selected a person but want to hide the person and keep the background visible. What should you do before clicking Add Layer Mask?
Show answer
Invert the selection, then add the layer mask. The background will be white and visible, while the person will be black and hidden.