Sub topic 4
Painting a selection with the Quick Selection tool
This chapter assumes you know the Photoshop workspace (toolbar, Options bar, Layers panel), the difference between a layer and the Background, and how to use Shift and Alt/Option as modifier keys. It also assumes you have read the earlier chapters on selection modes (New, Add, Subtract, Intersect) and on anti-aliasing and feathering. The chapter covers how the Quick Selection tool works, how to set its options, and the errors that most often waste time.
What the tool does
The Quick Selection tool lets you paint a selection with a round brush. You do not trace the outline of the subject. You drag inside the area you want, and Photoshop grows the selection outward until it meets an edge.
Photoshop decides where to stop by comparing pixels. It looks at the color and texture of the pixels under the brush and finds neighboring pixels that are similar. When it reaches a sharp change in color or brightness, it treats that change as an edge and stops.
This gives you a clear picture of when the tool works well:
- It works well when the subject differs from the background in color or brightness.
- It works poorly when the subject and background are similar, such as a gray cat on a gray sofa.
- It works poorly on soft or detailed edges, such as hair, fur, and smoke. Those edges need the Select and Mask workspace, covered in a later chapter.
The tool is not a magic wand that picks every pixel of one color. The Magic Wand selects pixels within a tolerance of the one you click. Quick Selection reads the area under the brush and also pays attention to edges, so it follows the shape of the subject better.
Where to find it and how to start
The Quick Selection tool shares a toolbar slot with the Object Selection tool, the Magic Wand, and sometimes other tools, depending on your version. Press W to switch to the group, and press Shift+W to cycle through the tools in it. The tool's cursor is a circle with a small plus sign. The circle shows the brush size.
A basic selection takes these steps:
- In the Layers panel, click the layer that contains the subject.
- Choose the Quick Selection tool.
- Set a brush size that fits the subject (see below).
- Click and drag inside the subject. Keep the cursor away from the edge at first.
- Release the mouse button and look at the marching ants (the moving dashed outline that shows the selection edge).
Because the tool samples the active layer by default, step 1 matters. If the wrong layer is active, the selection follows that layer's pixels, and the result looks wrong even though you painted correctly.
The Options bar
Most of the tool's behavior is controlled in the Options bar at the top of the window.
| Option | What it does | Typical use |
|---|---|---|
| Selection mode buttons (New, Add, Subtract) | Set how each new stroke combines with the existing selection | Leave on Add while painting |
| Brush picker | Sets size, hardness, spacing, angle, and roundness | Change size often, leave the rest alone |
| Sample All Layers | Reads pixels from all visible layers, not only the active one | Turn on when the image is split across layers or uses adjustment layers |
| Auto-Enhance | Smooths the edge and snaps it closer to the subject | Turn on for a cleaner first pass, turn off for fine control |
| Select Subject | Runs an automatic subject selection | Use to start, then fix with the brush |
| Select and Mask | Opens the Select and Mask workspace | Use after the shape is right |
Selection mode buttons
The Quick Selection tool has three mode buttons: New, Add, and Subtract. There is no Intersect button for this tool.
The first time you drag, the tool is in New mode, but once a selection exists, Photoshop switches the tool to Add mode automatically. This is deliberate, because painting a selection usually means building it up with several strokes. You can check which mode is active by looking at the cursor. A plus sign means Add, and a minus sign means Subtract.
To switch modes without going to the Options bar:
- Hold Alt (Windows) or Option (Mac) and drag to subtract from the selection.
- Release the key to return to Add mode.
Brush size and hardness
Brush size is the setting you will change most. Use the bracket keys:
- [ makes the brush smaller.
- ] makes the brush larger.
A larger brush selects big areas quickly, but it can leak across a thin edge. A smaller brush gives more control near edges and small details.
A good working rule is to start with a brush about half as wide as the subject's widest part. Then reduce the size as you move toward edges and tight corners.
Hardness controls how sharp the brush edge is. For this tool, a hardness of 100% is the usual choice. A softer brush sampling area gives vaguer results, because the tool uses the brush area to decide which pixels are similar.
Sample All Layers
By default, the tool analyzes only the active layer. Turn on Sample All Layers when the visible image is made of several layers. Examples include a photo with a texture layer on top, or an image with adjustment layers that change the contrast.
There is a trade-off. With Sample All Layers on, the selection follows what you see in the composite image. With it off, the selection follows only the active layer's pixels, which can be faster and more accurate if the layer is isolated.
Auto-Enhance
Auto-Enhance makes the edge of the selection smoother and pulls it a little closer to the real edge of the subject. It applies automatic edge refinement similar to what you would do in Select and Mask, but with less control.
The setting has costs as well as benefits:
- With it on, edges look cleaner, but the tool can be slower on large images.
- With it on, thin parts such as antennae or stems can be rounded off or lost.
- With it off, the edge follows the pixels more literally, so it can look jagged or noisy.
A practical approach is to leave Auto-Enhance on for large, smooth subjects such as a person's torso, a car body, or a building. Turn it off for subjects with thin, sharp details.
A worked example
Suppose you have a photo of a red bicycle leaning on a light-gray wall. You want to isolate the bicycle so you can place it on a new background.
- Select the photo layer in the Layers panel.
- Choose the Quick Selection tool and turn on Auto-Enhance.
- Set the brush to about 60 pixels and drag across the bicycle's frame.
- Look at the result. The selection probably includes the frame but misses the spokes and leaks onto the wall near the seat.
- Press [ a few times to reduce the brush to about 10 pixels.
- Hold Alt/Option and paint over the leaked wall area to subtract it.
- Release Alt/Option, and paint along the thin parts you missed to add them.
- Zoom in with Ctrl/Cmd and +, and check the edges at 100% or higher.
- Choose Select > Inverse to check what is outside the selection, and see if any bicycle parts are in it.
The sequence shows the usual rhythm: a big first pass, then small corrections with a smaller brush and the Add and Subtract modes.
Techniques for cleaner results
Paint inside, not on the edge
Keep the brush circle inside the area you want. If the circle crosses the edge, the tool samples both the subject and the background, so it cannot tell them apart. Paint along the inside of the edge and let the tool find the boundary itself.
Use short strokes
A single long stroke that wanders around the subject can drift. Several short strokes give you the chance to undo one bad stroke without losing the others. Use Ctrl/Cmd+Z to undo the last stroke only.
Subtract from the background side
When the selection leaks, do not try to erase it from inside the subject. Put the brush in the leaked region, away from the subject's edge, and subtract there. This pushes the boundary back toward the edge.
Work at the right zoom level
At low zoom you cannot judge edge quality. Zoom to at least 100% for final checks. Switch to the Quick Mask mode (press Q) to see the selection as a colored overlay, and press Q again to return to marching ants. Quick Mask makes small gaps and leaks much easier to see.
Start from Select Subject
The Select Subject button in the Options bar makes a first selection automatically. For simple photos with one clear subject, it can save a lot of painting. You then fix the errors with the Quick Selection brush. A later chapter covers Select Subject in more detail.
Common errors and how to fix them
| Symptom | Likely cause | Fix |
|---|---|---|
| Selection jumps to a large area of the background | Brush too large, or brush circle crossed the edge | Undo, reduce brush size, paint further inside the subject |
| Selection ignores a detail you can see | Wrong layer active, or Sample All Layers off | Click the correct layer, or turn on Sample All Layers |
| Thin parts disappear | Auto-Enhance rounding off details | Turn Auto-Enhance off, add the detail with a small brush |
| Edge looks jagged | Auto-Enhance off, or low zoom | Turn Auto-Enhance on, or refine in Select and Mask |
| Alt/Option subtraction does nothing | Alt/Option released too early, or the brush is over an area not currently selected | Hold the key through the whole stroke, and paint over a selected region |
| Selection includes a shadow | Shadow is similar in color to the subject | Subtract the shadow, or use another tool such as the Lasso |
| Tool seems slow | Auto-Enhance on a very large image | Turn Auto-Enhance off while painting, then refine afterward |
When Quick Selection is the right choice
Use Quick Selection when:
- The subject has a distinct color or brightness difference from the background.
- The shape is irregular and tracing it with a Lasso would take a long time.
- You expect to refine the edges afterward.
Choose another tool when:
- The subject is a distinct object and you can draw a loose rectangle around it. The Object Selection tool is often faster.
- The edges are straight lines, such as a building or a box. The Polygonal Lasso gives exact corners.
- The edges are very soft, such as hair. Use Select and Mask after a rough selection.
Exercise
You paint a Quick Selection over a person standing in front of a light-gray wall. The selection includes a large part of the wall near the person's shoulder. Name two actions that fix this, and say which keyboard modifier you use for subtracting.
Show answer
Reduce the brush size with the [ key, then hold Alt (Windows) or Option (Mac) and paint over the leaked wall area to subtract it. You can also undo the last stroke with Ctrl/Cmd+Z and repaint with a smaller brush kept further inside the subject. The modifier for subtracting is Alt/Option.
Exercise
You are selecting a plant with thin, spiky leaves. With Auto-Enhance on, the leaf tips look rounded. What setting do you change, and what is the cost of changing it?
Show answer
Turn Auto-Enhance off. The cost is that the selection edge follows the pixels more literally, so it may look rougher or more jagged, and you may need to clean it up afterward with Select and Mask.
Exercise
A document has a photo layer and a separate adjustment layer that changes the contrast. The Quick Selection tool, with the photo layer active, does not follow the edges you see on screen. Which option do you turn on, and why does it help?
Show answer
Turn on Sample All Layers. The tool then analyzes the visible composite, including the adjustment layer's effect, instead of only the pixels of the active layer, so the selection follows the edges you see.