• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
3

Outside stroke with square corners

Community Beginner ,
Jun 22, 2023 Jun 22, 2023

Copy link to clipboard

Copied

I would like to be able to apply an outside stroke with square corners to any layer in Photoshop. The layer styles stroke tool always rounds the corners when setting the stroke to outside. I don't want the stroke inside because it covers up part of the layer. I know this can be done in the vector shape stroke tool, but I would like this same functionality to be available in the layer styles stroke tool panel. Or better yet, one tool to apply any kind of stroke to any layer would be great. I'd be happy with the same functionality in the existing tools, though. Thanks!

Idea No status
TOPICS
macOS

Views

385

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
11 Comments
Community Expert ,
Jun 22, 2023 Jun 22, 2023

Copy link to clipboard

Copied

@familybees perhaps what would be helpful is to allow the same stroke controls as InDesign or Illustrator which have join, corner and bevel controls:

kevinstohlmeyer_0-1687448372272.png

kevinstohlmeyer_1-1687448390918.png

 

Votes

Translate

Translate

Report

Report
Community Beginner ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

Yes! This drives me absolutely crazy. I wish Adobe would give us greater control over the outside corners like Kevin points out in Illustrator.

 

So far my workaround has been to go ahead and set my outside stroke for however many pixels (ex. 20px) and let it do it's rounded-corner thing. Then with the Marquee tool (set at 0 for the corners) select the area of the outside stroke and create a solid color layer matching stroke color. Put it directly below the layer with the outside stroke and link the two layers together. It's a PITA, but so far seems to get me the results I wanted.

Votes

Translate

Translate

Report

Report
Community Expert ,
Mar 01, 2024 Mar 01, 2024

Copy link to clipboard

Copied

Stohlmeyer shows a great example of how to accomplish this.

Lee- Graphic Designer, Print Specialist, Photographer

Votes

Translate

Translate

Report

Report
Community Expert ,
Mar 03, 2024 Mar 03, 2024

Copy link to clipboard

Copied

Vector shape layers have these miter options and avoid these issues.

 

I have added my vote for layer styles on a raster layer. Until such a thing is available, depending on the use case, I can recommend a work around using a layer mask or clipping group layer with an oversized stroke – it is multi-step so best put into an action or script.

Votes

Translate

Translate

Report

Report
New Here ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

is there any aprovement to this problem?

I need to get thise corners sharp.

Votes

Translate

Translate

Report

Report
Community Expert ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

@Kaj35945084nura 

 

Can you provide a sample PSD file?

 

As I previously wrote, vector shape layers avoid the problem. Otherwise, a workaround using a layer mask or clipping group layer with an oversized stroke is also possible.

Votes

Translate

Translate

Report

Report
New Here ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

Hi, the problem is that I have jobs like this. I need to get sharp angled lines around the pieces. There may be more than 30-40 pieces in the structure.


Ystävällisin terveisin,
Best regards,

Kaj Salin
Designer

Dekotel Coating Oy
Hepolammentie 25
08680 Lohja
Finland
Tel:+358 20 773 9390
GSM:+358 40 730 4795
Email:kaj.salin@dekotel.com
http://www.dekotel.com

Votes

Translate

Translate

Report

Report
Community Expert ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

@Kaj35945084nura 

 

The following action works fine in my test setup, but yours may differ. Presuming a transparent layer with a raster fill with a stroke layer style applied and does not have any existing layer mask or clipping group applied. The following animation has a 2 second frame delay on the loop showing the round to square corner that the action delivers:

 

frames.gif

 

* Run the action on the selected layer.

 

* When prompted, set the Maximum filter to the size of the required stroke thickness in pixels (i.e. 8 px)

 

* Edit the stroke layer style and double its thickness (i.e. from 8 to 16 px)

 

Download link:

 

https://www.dropbox.com/scl/fi/n40xme9q3el2c85f5oiq6/Mask-Stroke-Style-to-Square-Corners.atn?rlkey=l...

 

Votes

Translate

Translate

Report

Report
Community Expert ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

You may have to play with the action a bit...

 

Your off-list sample file had a stroke of 39 px.

 

I had to set a Maximum filter of 28 px. When I used 39 px the result was too thick, which was unexpected, so YMMV.

 

Then I made the stroke 56 px. It doesn't have to be double, just large enough that the rounded corners extend past the mask.

 

As you have rotated/angled content, I don't think that this will work for you as the corner is chamfered, not sharp:

 

2024-03-12_20-46-48.png2024-03-12_20-46-54.png

Votes

Translate

Translate

Report

Report
Community Expert ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

I think that you need to redraw the raster layers requiring a stroke as a vector shape layer, where you have proper control over the stroke – don't use layer styles!

 

2024-03-12_21-20-53.png

 

It might be possible to convert a raster layer to a vector shape layer with a script, however, I'm not sure if I'm the person to make such a script.

 

Good luck.

Votes

Translate

Translate

Report

Report
New Here ,
Mar 12, 2024 Mar 12, 2024

Copy link to clipboard

Copied

LATEST
think that you need to redraw the raster layers as a vector shape layer, where you have proper control over the stroke – don't use layer styles!

This is out of the question. Errors may occur in measurements.


It might be possible to convert a raster layer to a vector shape layer with a script, however, I'm not sure if I'm the person to make such a script.

This might be the right solution. The layers must stay in exactly the right places. The line has to be at least 39 px thick.

- could a plugin be the solution?

Ystävällisin terveisin,
Best regards

Votes

Translate

Translate

Report

Report