Border is feathered, that’s why this happens.
Here’s from the help:
For example, a border width of 20 pixels creates a new, soft-edged selection that extends 10 pixels inside the original selection border and 10 pixels outside it
So how do I actually make an action which puts one line stroke around the image..?
I’d just expand 2 px in Canvas Size with background color set to black.
Why not just Select > All, Edit > Stroke (1px inside), Deselect?
Too obvious…?
Just kidding, that’s it of course.
I’m terribly sorry, but I’ve given wrong question at first. What I need, is a 1px stroke at -1px from border (leaving 1 px..)
Select > All
Select > Modify > Contract > 1 pixel
Edit stroke > 1 pixel
Aha, first one doesnt work in cs3, second one is not universal, for different dimensions % is different, and sometimes it’s not even possible get correct %..
The first one does work in CS3 I checked it.
The second is best done by eye using the scrubby sliders. (No good if you want it as an action though.)
For an action try this from Photoshop CS4 Help:
1. Double click the background layer and change its name to Layer 0.
2. Control-J to duplicate the layer. You can turn off the visibility of Layer 0 now.
3. Change the canvas size. Make sure relative is checked and that inches is changed to pixels. Type in 2 for values. This will give you a 2 pixel transparent area around the canvas. Control click on the layers thumbnail to select the non-transparent areas of the layer (this will match your original canvas size).
4. Run smooth from the Select-Modify menu with what you normally use.
5. Go to Image-Trim. Make sure it says Based on Transparency and that all four of the boxes are checked so that it trims evenly. This will get you back to your original, unaltered, canvas size. And with the selection still active.
6. Go to layer-New- and choose Background from Layer. This will place the layer at the base of the stack with the selection still active.
7. Add your white pixel workflow to the action to get it all done with in one click. If the smooth needs to be modified select the box next to the smooth command in the action. It will turn red and when you run the action it will stop there for new values and finish after that.
Select All
Quick Mask Mode
Edit > Stroke (1 pix inside)
Standard Mode
Edit > Stroke (1 pix inside)
Make that:
Select All
Quick Mask Mode
Select All
Edit > Stroke (1 pix inside)
Standard Mode
Edit > Stroke (1 pix inside)
Why can’t I contract from the edge of my document in CS4? this worked fine in CS3… I use this method a lot for making 1px borders
Select All
Select > Modify > Contract (1px) done…
but in CS4 if the selection is touching all 4 corners this option is disabled!?!? or any corner that it is touching won’t contract… help!
You could use a script to select all minus one pixel and create a shortcut or an action to it.
#target photoshop
var strtRulerUnits = app.preferences.rulerUnits;
var strtTypeUnits = app.preferences.typeUnits;
app.preferences.rulerUnits = Units.PIXELS;
app.preferences.typeUnits = TypeUnits.PIXELS;
var LB= activeDocument.activeLayer.bounds;
activeDocument.selection.select([[LB[0]+1,LB[1]+1], [LB[2]-1,LB[1]+1], [LB[2]-1,LB[3]-1], [LB[0]+1, LB[3]-1]], SelectionType.REPLACE, 0, false);
app.preferences.rulerUnits = strtRulerUnits;
app.preferences.typeUnits = strtTypeUnits;