It is currently Thu Jul 04, 2024 3:33 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Is there a script for doing Stroke outside selection?
PostPosted: Thu May 25, 2023 9:29 pm  (#1) 
Offline
GimpChat Member

Joined: Feb 08, 2022
Posts: 6
GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Basic Level



My apologies if this has already been answered somewhere. I did a search, but nothing useful came up.

Does anyone have a script for adding a stroke ONLY to the OUTSIDE of a selection? I found one for selecting an entire layer (which is useful, and a rather glaring omission on GIMP's part). And I figured out how to add a path and put a stroke along that path. But every attempt I've made to put a stroke along the outside has either yielded nothing at all, or the usual problem with the stroke straddling the line.

I've been searching extensively for tips on this, and they're all either incomprehensible or don't work. Also, I don't want to have to jump through a million hoops to do something that OUGHT to be simple.

I can't be the only one who's at their wits' end about this. Has someone made a script for doing this simple thing? If so, can someone please post a link to it?

Thanks in advance.


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Is there a script for doing Stroke outside selection?
PostPosted: Thu May 25, 2023 10:57 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Apr 01, 2012
Posts: 7745
Location: On the other side of this screen
What you can do when you want a stroke outside a selection is
Do your selection. Grow it (the selection) then stroke it. Change your selection to a path and get rid of your selection. Stroke the path - will be better.

_________________


Top
 Post subject: Re: Is there a script for doing Stroke outside selection?
PostPosted: Fri May 26, 2023 2:58 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4756
* Select > To path
* Select > Invert
* Edit > Stroke path

But usually, instead of doing this, you just stroke a layer below so the part that is inside is masked off, because with the edge of the selection will have partially selected pixels that may leave a tiny but visible gap.

If you need to outline the contents of a layer that has a transparent background you can automate a few things with my ofn-outline-layer script.

_________________
Image


Top
 Post subject: Re: Is there a script for doing Stroke outside selection?
PostPosted: Thu Aug 31, 2023 10:36 pm  (#4) 
Offline
GimpChat Member

Joined: Feb 08, 2022
Posts: 6
Actually, I did find a solution that worked well for me. I'll post it here to help others:

Go to Filters --> Light and Shadow --> Drop Shadow.
Set X and Y both to 0.
Set Blur Radius to 0.
Set Grow Shape to Circle.
Set both Opacity levels to maximum.
Then adjust the Grow Radius to increase or decrease the line thickness.


Top
 Post subject: Re: Is there a script for doing Stroke outside selection?
PostPosted: Fri Sep 01, 2023 6:44 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1456
https://github.com/LinuxBeaver/GEGL-SSG ... /releases/

My plugin SSG can make a stroke go more outside a selection using its "make SSG go inward or outward" slider

Attachment:
ssg.png
ssg.png [ 81.32 KiB | Viewed 401 times ]


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) stroke selection/stroke path

2

No new posts Attachment(s) Board Game Design - Stroke Selection and Pattern Fill Questions

3

No new posts Stroke: how to remove space between test & stroke

3

No new posts Attachment(s) Script for selecting, cropping the selection and saving the file

8

No new posts Attachment(s) stroke path with pattern

26


cron

* Login  



Powered by phpBB3 © phpBB Group