Sub topic 6
Select the Subject You Want to Keep
A selection is the bridge between "I have two photos on two layers" and "I have one believable image." This chapter covers how to build a clean selection of your subject, how to judge it, and how to store it so the next chapter can turn it into a layer mask.
What this chapter assumes
You should already be comfortable with the Photoshop interface (toolbar, panels, menus) and know that a layer is a separate, stackable piece of an image. You should also have both photos in one document, as covered in the earlier chapters. This chapter works on the layer that holds the subject you want to keep, for example a person, an animal, or an object that you plan to place in a new background.
What a selection is
A selection is a boundary that limits where Photoshop applies an edit. On screen it appears as "marching ants," a moving dashed outline. Inside the outline, edits take effect. Outside it, pixels are protected.
A selection is not always a hard on/off boundary. Each pixel has a selection value from 0 (not selected) to 100 percent (fully selected). Pixels with values in between are partially selected. This is how soft edges, hair, and fur are handled. The marching ants only show the 50 percent boundary, so a selection can contain soft transitions you cannot see in the outline.
Selections matter for compositing because a layer mask is built from one. A selection becomes the white (reveal) and black (conceal) areas of the mask. A rough selection gives a rough mask, and the error shows up later as halos or jagged edges.
Choose the tool that matches the subject
No single selection tool works for every photo. Pick based on what separates the subject from its background.
| Situation | Good first tool | Why |
|---|---|---|
| Subject clearly different from background | Select Subject (Select menu) | One click, uses machine learning to find the main subject |
| Subject you want to pick by outlining | Object Selection tool | You drag a rectangle or loop and Photoshop snaps to the object inside |
| Large area of similar color or brightness | Quick Selection tool | You paint over the area and the selection grows to edges |
| Hard-edged object such as a building or product | Pen tool or Polygonal Lasso | Gives exact, controllable edges |
| Background is a flat, uniform color | Magic Wand tool or Select > Color Range | Selects by color similarity |
| Soft, wispy edges such as hair | Start with Select Subject, then refine in Select and Mask | Handles partial transparency |
Tool names and menu locations can differ slightly between Photoshop versions. The options described here are in current Creative Cloud releases. If a tool is missing, check that your version is up to date.
A worked workflow
The sequence below works for most photos of people, animals, and objects.
1. Prepare the layer
Click the layer that contains the subject in the Layers panel. Selection tools read the pixels of the active layer. If you have the wrong layer active, the selection will follow the wrong image.
If the layer is a Smart Object, you can still make a selection on it. You cannot paint or erase on a Smart Object directly, but selections and masks are fine.
Zoom to at least 100 percent (press Ctrl+1 on Windows or Cmd+1 on macOS) before judging edge quality. Zoomed-out views hide most problems.
2. Make a first-pass selection
Start with the fastest tool that is likely to work.
- Choose Select > Subject. Photoshop analyzes the image and draws a selection around the main subject.
- Look at the marching ants. Note where they cut into the subject or spill onto the background.
If Select > Subject picks the wrong thing or misses part of the object, use the Object Selection tool instead. In its options bar, set Mode to Rectangle or Lasso, then drag around the object. Turn on Object Finder if you want Photoshop to highlight candidate objects as you hover over them.
3. Add to and subtract from the selection
Rarely is the first pass right. Fix it by adding and subtracting.
- Hold Shift while using a selection tool to add to the current selection.
- Hold Alt (Windows) or Option (macOS) to subtract.
- The options bar also has buttons for New, Add, Subtract, and Intersect modes. These are easier to use than modifier keys when you are learning.
With the Quick Selection tool, a small brush works better for narrow areas such as fingers or the gap between an arm and the body. Change the brush size with the left and right bracket keys, [ and ].
4. Check the selection in a clearer view
Marching ants are hard to judge. Better views make errors obvious.
- Quick Mask mode (press Q) shows unselected areas in a translucent red overlay. Press Q again to leave it. In this mode you can fix a selection by painting with the Brush tool: painting black removes areas from the selection, and painting white adds areas.
- In Select and Mask (covered in more detail in a later chapter), the View menu offers On Black, On White, and Overlay. A subject placed on a contrasting color shows halos and gaps at once.
Use at least one of these views before you move on. A selection that looks fine as marching ants often shows missed patches in Quick Mask.
5. Save the selection
Once you are happy, save it so you can return to it. Choose Select > Save Selection, name it (for example "subject"), and click OK. The selection is stored as an alpha channel, which is a grayscale image kept in the Channels panel. You can reload it with Select > Load Selection.
Saving also protects you from a common slip: clicking elsewhere with a selection tool without modifier keys replaces the active selection, and it is easy to lose careful work.
The following diagram shows the loop you will repeat.
Common errors and how to fix them
The selection picks the wrong layer's content
The selection follows the pixels of the active layer. If you made the selection while the background layer was active, it will outline the background subject. Undo, click the correct layer, and redo the selection.
Hard, cut-out edges
Photoshop selections made with Select Subject are often tight but slightly hard. If the result looks like a paper cutout, the next step is feathering or Select and Mask, which the later chapter on edge refinement covers. For now, only make sure the selection is in the right place.
Colored halos
A thin bright or dark line around the subject appears when the selection includes a sliver of the old background. Shrink the selection slightly with Select > Modify > Contract, entering 1 or 2 pixels. If the halo persists after you apply a mask, the Decontaminate Colors option in Select and Mask can help.
Holes inside the subject
Areas of the subject that resemble the background, such as a white shirt against a white wall, may be left out. Zoom in, switch to Add mode, and paint over the missing area with the Quick Selection tool, or use Quick Mask and paint white on the gap.
Hair and fur
Do not expect a clean result from the first pass. Make the best body selection you can, then refine the hair area with the Refine Hair button or the Refine Edge Brush in Select and Mask. Trying to trace individual strands with a lasso wastes time.
Selection lost by accident
Press Ctrl+Z or Cmd+Z immediately. If you saved the selection, load it back with Select > Load Selection. As a last resort, Select > Reselect (Shift+Ctrl+D or Shift+Cmd+D) restores the previous selection.
Edge cases to watch
- Low contrast photos. If the subject and background have similar tones, automatic tools struggle. Increase contrast temporarily with a Curves adjustment layer to help you see the edge, make your selection, then delete or hide the adjustment layer.
- Motion blur. A blurred edge has partial transparency. A hard selection will look wrong. Keep the edge soft and rely on feathering or mask painting.
- Multiple subjects. Select each separately and combine them with Add mode. Alternatively, save each as its own named selection.
- Very large files. Selection tools can lag at high resolutions. Work at 50 to 100 percent zoom while building the selection, and zoom in only to check problem areas.
- Subject touching the image edge. Selections near the border sometimes shrink inward. Zoom in on the border and add any missing pixels.
What you leave this chapter with
At this point you should have a saved selection of the subject, checked in at least one high-contrast view, with obvious holes and spills fixed. You do not need smooth or feathered edges yet. The next chapter turns this selection into a layer mask, where white reveals and black conceals.
Exercise
You run Select > Subject on a photo of a person standing in front of a pale gray wall. In Quick Mask mode, you see that the person's light gray jacket has a red overlay covering part of it. What does this mean, and how do you fix it?
Show answer
The red overlay marks unselected areas, so that part of the jacket was left out of the selection because its color is close to the wall. To fix it, keep Quick Mask on, choose the Brush tool, set the foreground color to white, and paint over the red area on the jacket to add it to the selection. Press Q to leave Quick Mask and confirm the marching ants now include the jacket. Then save the selection with Select > Save Selection.
Exercise
You made a careful selection, then clicked on the image with the Quick Selection tool and the old selection disappeared. Name two ways to avoid or recover from this.
Show answer
To recover, press Ctrl+Z (Cmd+Z on macOS) right away, or use Select > Reselect to bring back the previous selection. To avoid the problem, save the selection with Select > Save Selection once it looks right, so you can reload it from the Channels panel or with Select > Load Selection. Using the Add mode button in the options bar instead of a plain click also prevents a new selection from replacing the old one.