Sub topic 3
Growing, Shrinking, Smoothing, and Feathering a Selection
This chapter assumes you can make a selection with the Quick Selection or Lasso tools, that you understand layers, and that you can use Shift and Alt (Option on macOS) to add to or subtract from a selection.
Modifying a selection
The Select > Modify submenu changes the shape of an existing selection. Values are in pixels.
| Command | Effect | Typical use |
|---|---|---|
| Expand | Grows the selection outward | Recover a thin halo the tool missed |
| Contract | Shrinks the selection inward | Remove a fringe of background |
| Smooth | Rounds jagged corners using a sample radius | Clean up a blocky edge |
| Feather | Blends the edge over a radius | Soft transitions in an edit |
Select > Grow works differently. It adds neighboring pixels whose color falls within the Tolerance value set in the Magic Wand Options bar.
var doc = app.activeDocument;
doc.selection.expand(4);
doc.selection.smooth(3);
doc.selection.feather(2);The script above applies the same three edits through Photoshop's scripting interface. Run it from the Scripts panel or the Extendscript Toolkit.
Refining edges in Select and Mask
Select and Mask (Photoshop 2015.5 and later) gives finer control over hair, fur, and soft edges. With a selection active, click Select and Mask in the Options bar. Use the Refine Edge Brush along difficult edges. The Smooth, Feather, Contrast, and Shift Edge sliders adjust the result. Set Output To to Layer Mask to keep the edits non-destructive.
Keeping the result: layer masks and saved selections
A layer mask hides or reveals pixels without deleting them. With a selection active, click Add Layer Mask at the bottom of the Layers panel. Paint black on the mask to hide pixels and white to reveal them.
To reuse a selection later, choose Select > Save Selection and give it a name. It is stored as a channel. Load it again with Select > Load Selection.
Choosing a tool for the image
Combine tools when one tool fails on part of an image. For example, use Object Selection for the main subject, then subtract a background area with the Lasso tool while holding Alt.
Exercise
You have a Quick Selection that leaves a thin dark halo around a cutout subject. Which Select > Modify command should you use first, and why?
Show answer
Use Contract by 1 to 2 pixels. It shrinks the selection inward and removes the fringe of background that the tool included. Then use Feather of 1 pixel to soften the edge.