Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

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

share|improve this answer
Useful and the superior option in case the border is a single colour. Unfortunately, there's slight variations. –  Vincent Jun 11 '14 at 16:05
What about an action to retract the canvas size by 1px? –  GoofyMonkey Jun 11 '14 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.

share|improve this answer
This almost works, but it doesn't give a solid 1px line, it seems to be slightly anti-aliased. –  Richard Tan Oct 24 '14 at 3:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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