How do I contract a selection of all pixels in Photoshop?
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?
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...
A quick workaround is to use the one
Modify option still available:
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.