Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn-outline-layer
#1
A quickie to add an outline around layer contents:

   
At the usual place.

Enjoy.
Reply
#2
I havent tried it, but how is it different from stroking a path ?
Reply
#3
It is actually stroking a path. It's just a bit more automated.

PS: working on an "inner" border which is a tougher nut to crack because you have to replace the edge pixels of the existing text by the edge pixels of the added outline (you cannot just overlay them). Especially if you want this to take in account an existing selection. Not undoable by hand but the script will certainly be useful.
Reply
#4
Updated version with an "inside" option.
Reply
#5
(10-18-2019, 12:13 PM)Ofnuts Wrote: A quickie to add an outline around layer contents:


At the usual place.

Enjoy.

Would it be possible to do this non-destructive? By creating a new layer underneath (outside border) or above (inside border) the selected layer?

And would it also be possible to select the outline color and give it a feather effect?

(05-13-2020, 01:39 PM)FredSchenk Wrote:
(10-18-2019, 12:13 PM)Ofnuts Wrote: A quickie to add an outline around layer contents:


At the usual place.

Enjoy.

Would it be possible to do this non-destructive? By creating a new layer underneath (outside border) or above (inside border) the selected layer?

And would it also be possible to select the outline color and give it a feather effect?

As a reference, a script which should do this, but gives an error on my system: https://pete.nu/software/gimp-outliner/
Reply
#6
Quote:As a reference, a script which should do this, but gives an error on my system: https://pete.nu/software/gimp-outliner/

There is a reference to an updated version of that script here: https://www.gimp-forum.net/Thread-Text-s...4#pid18184
Reply
#7
(05-13-2020, 01:39 PM)FredSchenk Wrote:
(10-18-2019, 12:13 PM)Ofnuts Wrote: A quickie to add an outline around layer contents:


At the usual place.

Enjoy.

Would it be possible to do this non-destructive? By creating a new layer underneath (outside border) or above (inside border) the selected layer?

And would it also be possible to select the outline color and give it a feather effect?

(05-13-2020, 01:39 PM)FredSchenk Wrote:
(10-18-2019, 12:13 PM)Ofnuts Wrote: A quickie to add an outline around layer contents:


At the usual place.

Enjoy.

Would it be possible to do this non-destructive? By creating a new layer underneath (outside border) or above (inside border) the selected layer?

And would it also be possible to select the outline color and give it a feather effect?

As a reference, a script which should do this, but gives an error on my system: https://pete.nu/software/gimp-outliner/

No, because you cannot do this properly with two layers, at least for the "inside" case. Consider a red layer to which you add a blue outline. The edge pixels of the initial layer are partially transparent red. If you want a blue "inside" outline, the edge pixels of the result will have to be partially transparent blue with no red component. If you want to keep the red layer, the edge pixels of the result will be purple (and a bit too opaque).

So such a solution would involve a third layer, above the initial layer and below the outline layer, whose sole purpose is to make the edge pixels of the initial layer completely transparent (Delete blend mode or else, but after figuring out how to line a line of fully opaque pixels pixels that covers exactly these edge pixels).
Reply
#8
Love this plugin. I came across a small problem when it involves sharp serif fonts with the letter A. You can avoid the point at the top by outlining in layers of smaller line widths, however if you choose to zero miter limit, it gives the text a beveled outline (not my goal).

[Image: 1pwFiry.png]


Reply
#9
Known problem. Even worse with M or W. You can usually pick a medium miter limit  (4-5) to avoid this.
Reply


Forum Jump: