Sub topic 1
Layers and Masks: The Foundation for Every Effect
Prerequisites
You should know how to open and save a Photoshop document, use the Layers panel, change layer opacity, make a selection, and use the Move and Transform tools. This chapter assumes you can identify the subject you want to separate from its background.
Why Layers Matter
A layer is a separate sheet of image content in a Photoshop document. Each layer can contain pixels, text, shapes, or effects. Layers let you edit one part of an image without permanently changing the other parts.
For realistic shadows and reflections, keep the subject, background, shadow, and reflection on separate layers. This structure lets you adjust each effect independently. You can change the shadow opacity without changing the subject, or move the reflection without moving the original object.
Start by opening the Layers panel. If it is hidden, choose Window > Layers. Rename important layers as you work. For example:
- Background
- Subject
- Contact Shadow
- Cast Shadow
- Reflection
Clear names make it easier to select the correct layer later.
How Layer Masks Work
A layer mask controls which parts of a layer are visible. White reveals the layer, black hides it, and gray reveals the layer partially. The mask changes visibility rather than deleting pixels.
When you add a mask to a selected layer, Photoshop displays a white thumbnail beside the layer thumbnail. Click the mask thumbnail before painting on it. A border around the mask thumbnail confirms that the mask is active.
Use a soft black brush to hide unwanted edges. Use white to restore areas that you hid. Use gray, or lower the brush opacity, to create a gradual transition. This is useful for reflections and soft shadows.
Building a Masked Cut-Out
- Duplicate the background layer. Keep the original hidden as a backup.
- Select the duplicate and rename it Subject.
- Use Select Subject, the Object Selection tool, or another selection method to select the object.
- Refine the selection around hair, thin edges, and areas with similar colors.
- With the Subject layer active, click the Add Layer Mask button in the Layers panel.
- Inspect the result against a temporary contrasting background.
- Paint black or white on the mask to correct small errors.
A selection becomes a mask when you add it while the selection is active. The selected area remains visible, and the unselected area becomes hidden. If the result is backward, select the mask and press Control+I on Windows or Command+I on macOS to invert it.
Zoom out regularly. A mask that looks perfect at 300 percent may create a visible halo at normal viewing size. Check the edge against both a light and a dark temporary layer.
Keep the Workflow Reversible
Save the layered document as a Photoshop document (PSD) or large document format (PSB). Do not flatten the image while you are still working.
For a subject that may need scaling or distortion, convert the layer to a Smart Object before transforming it. A Smart Object stores the original content inside a container, so repeated transformations cause less permanent damage. Add adjustment layers above the subject when you need to change brightness, contrast, or color without altering the source pixels.
A mask is best for hiding shape. An adjustment layer is best for changing tone. A Smart Object is best for protecting content during transformations. Together, they provide a flexible base for shadows and reflections.
Exercise
You masked a subject, but the background is visible and the subject is hidden. How can you correct the mask without deleting the layer?
Show answer
Select the mask thumbnail and invert it with Control+I on Windows or Command+I on macOS. You can also paint white on the subject area and black on the background area.