Sub topic 5
Making Masks from Selections
Assume you can navigate the Layers panel, use basic selection tools, and work with layer masks. A selection marks an area temporarily. A layer mask stores that decision on the layer, so you can change it later without deleting pixels.
Turn a selection into a layer mask
Use a selection when you already know which part of a layer should remain visible. Photoshop converts the selection into grayscale mask data:
- Selected areas become white and remain visible.
- Unselected areas become black and become hidden.
- Feathered or partially selected edges become gray and blend gradually.
Worked example: isolate a subject
Suppose a portrait layer contains a person against a simple background.
- Select the portrait layer in the Layers panel.
- Use the Quick Selection tool, Object Selection tool, or another selection tool to select the person.
- Check the selection edge. Add or subtract areas with the selection tool as needed.
- Click the Add Layer Mask button at the bottom of the Layers panel.
- Photoshop creates a mask that reveals the selected person and hides the rest of the layer.
- Click the mask thumbnail, not the image thumbnail, if you want to correct the mask.
The layer pixels still exist. You can reveal hidden areas later by painting white on the mask.
Reveal the selection or hide it
Photoshop normally uses the active selection as the visible area. To keep the outside area instead, invert the selection before adding the mask.
- Create the selection.
- Choose Select > Inverse, or press Shift+Ctrl+I on Windows or Shift+Command+I on macOS.
- Click Add Layer Mask.
The same result can be produced after creating the mask by selecting the mask thumbnail and choosing Image > Adjustments > Invert, or pressing Ctrl+I or Command+I.
| Goal | Selection before adding the mask | Result |
|---|---|---|
| Keep the selected subject | Subject selected | Subject visible, background hidden |
| Keep everything outside the subject | Subject selected, then inverted | Subject hidden, background visible |
| Hide the selected area | Selection inverted before masking | Selected area becomes hidden |
Control edge softness
The quality of the selection determines the quality of the mask. A hard-edged selection can create a cutout. A feathered selection creates a gradual transition.
For a soft transition, choose Select > Modify > Feather before creating the mask. Use a small radius for a subtle blend. A large radius can make the subject look transparent around the edges.
You can also choose Select and Mask to inspect the edge, adjust smoothness and feathering, and output the result as a layer mask. Keep the original layer available while refining so you can compare the result.
Common errors
- Adding the mask to the wrong layer hides or reveals the wrong content.
- Forgetting to invert the selection produces the opposite result.
- A rough selection creates a rough mask. Fix the selection or paint on the mask afterward.
- Painting while the image thumbnail is active changes pixels instead of the mask.
Exercise
You selected a logo but want to hide the logo and keep the surrounding background. What should you do before clicking Add Layer Mask?
Show answer
Invert the selection with Select > Inverse, then add the layer mask.