How to Expand or Contract a Selection in Image Editing
Adjusting the size of an active selection boundary is a fundamental technique in digital image editing used to refine cutouts, eliminate color fringing, and create precise masks. This guide explains how to expand (grow) or contract (shrink) a selection boundary across industry-standard image editing software, specifically Adobe Photoshop and GIMP, along with practical use cases for these tools.
Expanding or Contracting in Adobe Photoshop
Photoshop provides built-in menu commands to modify active selections by a specific number of pixels.
- Create your initial selection using any selection tool (such as the Marquee, Lasso, or Quick Selection tool).
- Navigate to the top menu and click Select.
- Hover over Modify.
- Choose either:
- Expand... to make the selection boundary larger.
- Contract... to pull the boundary inward.
- In the dialog box that appears, enter a pixel value (from 1 to 100) based on how much you want to adjust the boundary.
- Click OK to apply the modification.
Alternative: Using Select and Mask
For soft or complex edges, Photoshop's Select and Mask workspace offers greater control:
- With an active selection, click Select and Mask in
the options bar (or press
Ctrl + Alt + Ron Windows /Cmd + Option + Ron Mac). - Locate the Global Refinements section in the right panel.
- Adjust the Shift Edge slider. Move it to the right to expand the boundary or to the left to contract it.
- Click OK.
Growing or Shrinking in GIMP
GIMP uses the terms "Grow" and "Shrink" to describe expanding and contracting selections.
- Make a selection using tools such as the Fuzzy Select Tool (Magic Wand) or Rectangle Select.
- In the top menu, click Select.
- Choose your desired action:
- Click Grow... to expand the selection outward.
- Click Shrink... to pull the selection inward.
- Enter the number of pixels (or alternate units like millimeters or inches) to expand or shrink the boundary.
- Click OK.
When to Use Boundary Adjustments
- Eliminating Halos and Fringing: Automated tools often leave a 1- or 2-pixel outline of the background color around a subject. Contracting the selection by 1 to 2 pixels cuts cleanly into the subject, removing background artifacts.
- Creating Borders or Outlines: Expanding a selection around an object, filling it on a lower layer, and applying color allows you to create uniform strokes and silhouettes.
- Refining Drop Shadows: Expanding a selection before blurring it provides a larger, more natural surface area for shadows and glow effects.