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.

  1. Create your initial selection using any selection tool (such as the Marquee, Lasso, or Quick Selection tool).
  2. Navigate to the top menu and click Select.
  3. Hover over Modify.
  4. Choose either:
    • Expand... to make the selection boundary larger.
    • Contract... to pull the boundary inward.
  5. In the dialog box that appears, enter a pixel value (from 1 to 100) based on how much you want to adjust the boundary.
  6. 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:

  1. With an active selection, click Select and Mask in the options bar (or press Ctrl + Alt + R on Windows / Cmd + Option + R on Mac).
  2. Locate the Global Refinements section in the right panel.
  3. Adjust the Shift Edge slider. Move it to the right to expand the boundary or to the left to contract it.
  4. Click OK.

Growing or Shrinking in GIMP

GIMP uses the terms "Grow" and "Shrink" to describe expanding and contracting selections.

  1. Make a selection using tools such as the Fuzzy Select Tool (Magic Wand) or Rectangle Select.
  2. In the top menu, click Select.
  3. Choose your desired action:
    • Click Grow... to expand the selection outward.
    • Click Shrink... to pull the selection inward.
  4. Enter the number of pixels (or alternate units like millimeters or inches) to expand or shrink the boundary.
  5. 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.