I have a series of images with a 1px border included in the picture. I need to get rid of that border. The logical route seemed to be Select > All and then Select > Modify > Contract... by 1 px. Unfortunately, when all pixels in a layer are selected, Photoshop (CS6 in my case) greys out all Select > Modify option but Border.... This seems to be an ancient 'bug', introduced in Ps CS3.

How can I work around this 'bug', preferably in a way that allows me to automate the process in an action?

  • I cant believe this bug still exists...
    – Tobi
    Apr 13, 2020 at 1:35

4 Answers 4


What about the Trim feature? If the pixel border around the images is a solid colour or transparent Trim would work. You might have to play around with it a bit, but you should be able to use it to do what you are asking.

Image > Trim...

enter image description here

  • Useful and the superior option in case the border is a single colour. Unfortunately, there's slight variations.
    – Vincent
    Jun 11, 2014 at 16:05
  • 1
    What about an action to retract the canvas size by 1px? Jun 11, 2014 at 16:06

A quick workaround is to use the one Modify option still available: Border. Border for the amount of pixels you want to trim off the image, reverse the selection (Select > Inverse or Shift+Ctrl/Option+I) and Image > Crop.

  • This almost works, but it doesn't give a solid 1px line, it seems to be slightly anti-aliased. Oct 24, 2014 at 3:12

You can follow these steps:

  1. Select - All
  2. Select - Modify - Border (1px)
  3. Select - Inverse
  4. Select - Modify - Contract

Check out https://www.youtube.com/watch?v=kZH2gT5dGmY.

Janie News explains how to contract a selection. I think she is using a PC.

Use CMD-click when selecting the layer with the selection prior to using Select -> Contract

  • Hello Peggy and thanks for the contribution! Let us know if you have any questions Mar 6, 2016 at 6:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.