What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Making a Border in Photoshop (How to control the Stroke)


LutherBaker

Member
Messages
5
Likes
0
I created a plus sign in Photoshop with 3 layers. A horizontal rectangle on the "Horizontal" layer, a vertical rectangle on the "Vertical" layer and then I drew a Shape on the "Outline" layer.

The image is 44 pixels square and each rectangle is 14x38 pixels and centered according to its layer.

On the outline layer, I created a 'rounded' rect over each of the corresponding rectangles and then I combined them to create a working path that borders the entire plus sign:

Screen shot 2011-11-30 at 1.58.12 PM.png

Notice where the gap between the border changes from 1 pixel to 2 pixels? When I try to create a STROKE on that border, I don't understand why Photoshop strokes the OUTSIDE of the some portions of the path and the INSIDE of others.

Screen shot 2011-11-30 at 2.01.19 PM.png

My initial path surrounded the plus sign with a single pixel of padding --- but after 'failing' at this several times, I had to adjust my path to match the one in the first image where certain parts of the path need to be 2 pixels from the plus sign. Is this some sort of 'winding' issue? I'm surprised I can't specify "center", "outside" or "inside".

Thanks,
-Luther
 
Hi Luther,
Im guessing that you don't want the white gap in between the border and the blue cross?
If so, you can just create a stroke by right clicking the vertical and horizontal layers, then clicking 'blending options…'
you will get a popup window with a menu on the right, click stroke on that menu, set it to how many px you want the stroke to stand out by, set the colour
to the blue of the cross then you should have your stroke.

If you DO want that white gap between the stroke and the cross, create a second cross that is on the layer behind the horizontal and vertical layers,
then make it 1px bigger than the blue cross, set its colour to white so it is the same as the background then do the same as the method above with the stroke.
That should solve your problem, and the stroke will adapt if you change your cross' shape.

ONE LAST THING:
Sorry about this, I forgot to mention it earlier, you will need to merge the vertical and horizontal layers, this is done by selecting the two layers then right clicking
one of the layers then clicking merge, otherwise you will get the stroke of one of the layers on top of the other, creating an odd effect.

Sorry if this looks like it was written for babies but I had no Idea of your photoshop experience :)

Tim
 
Not at all - I really appreciate the detail.

Your suggestions make perfect sense - and look like they will scale well too.

What I'm 'really' looking for is a better understanding about paths - and what I can do to control how a stroke is drawn on the path.

The second image I posted will actually work just fine for what I'm doing (yes, I do want the 1 pixel of white padding) but I am working on a similar image that is only 20x20 and when I try to stroke the same path on it, the stroke wraps from the inside to the outside MIDLINE! It doesn't even wait for a corner.

That image is so small that I've decided to simply paint the border pixel by pixel for now - but I wish I understood how to better control strokes and fills on paths - especially when I'm dealing with a shape around 18x18 pixels large.
 
You could always put your stroke on a new layer and then stoke that layer. To put fx on a new layer right click on the fx icon that shows up on he layer and hit create new layer.
 
Is it the case that stroking the layer as you've described is more predictable or accurate than stroking a vector path on a new layer? In my case, I did create a new layer - but I tried to stroke the shape or vector path on that new layer - which is what I can't get to work predictably.

If so, sweet, I will keep that approach in mind when I need to apply a border ... but that still leaves me with the unanswered question - why does a path's stroke wander around the path like I'm seeing? I'd like to understand how to control a path's stroke to maybe take advantage of Photoshop's path functionality.
 


Write your reply...

Back
Top