Photoshop

Expand or contract a selection by a specific number of pixels

  1. Use a selection tool to make a selection.
  2. Choose Select > Modify > Expand or Contract.
  3. For Expand By or Contract By, enter a pixel value between 1 and 100, and click OK.

    The border is increased or decreased by the specified number of pixels. Any portion of the selection border running along the canvas’s edge is unaffected.