It is currently 17 Oct 2021, 08:52

• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

GIMP/GL:  Tutorials | Tips | 🡆 Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP
Sponsored content for World Food Program

Please, Help with Selection to Gradient Border

GIMP or GIMP LEARN forum related Questions
Issabella
Script Tester
3rd Place
3538 Post(s)

Please, Help with Selection to Gradient Border

Post#1 by Issabella » 24 Sep 2021, 06:47


I can't get a visible result. The plug-in runs apparently well as I can see its acting but at the end it isn't visible remeining only the final selection.
Here the shots I get.
Tim, or someone else if you have an idea what is wrong, please tell me. Thanks
Attachments
1.jpg
1.jpg # (57.77 KiB) Viewed 257 times (Thumbnail | Recognize | Sq Tile | LNFI)
2.jpg
2.jpg # (53.92 KiB) Viewed 257 times (Thumbnail | Recognize | Sq Tile | LNFI)
3.jpg
3.jpg # (55.9 KiB) Viewed 257 times (Thumbnail | Recognize | Sq Tile | LNFI)
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.

Krikor
Forum Member
12th Place
915 Post(s)

Post#2 by Krikor » 24 Sep 2021, 12:04


Issabella wrote:
24 Sep 2021, 06:47
I can't get a visible result. The plug-in runs apparently well as I can see its acting but at the end it isn't visible remeining only the final selection.
Here the shots I get.
Tim, or someone else if you have an idea what is wrong, please tell me. Thanks
Hi Issa,

May I initially suggest that you check:
1- The brush you have active;
2- Do it before, layer to Image Size, then apply the plugin to the selection.

I hope it helps.

PS.: The impression given by your image is that everything is as expected.
Quoting Tim: "This plug-in only selects a border using the gradient as a feather-mask. So it's supposed to be visible, and then you can fill the selection with whatever you like."
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

rich2005
GIMP Guru
22nd Place
178 Post(s)

Post#3 by rich2005 » 24 Sep 2021, 13:05


I have an idea what is wrong but only an idea.

I can reproduce the gradient layer 'vanishing' using Gimp 2.10.28 in kubuntu 20.04 Strangely using a different computer and kubuntu18.04 the plugin works as expect. The only real difference is the version of GEGL and I suspect that the cause.
That is linux and I think Issabella uses Windows and everything is working as expected there, both a regular Gimp 2.10.28 and a samj Gimp 2.10.28 portable So who knows ? Not me.

This sort of fix, works for me. Lines 97 and 98 commented out. It does mean that you need to apply the layer mask yourself

Example: Before and after: https://i.imgur.com/mawAFFh.mp4
Attachments
gradient-border-selection-2.py #
(4.59 KiB) Downloaded 14 times
Last edited by rich2005 on 24 Sep 2021, 18:12, edited 2 times in total.

Krikor
Forum Member
12th Place
915 Post(s)

Post#4 by Krikor » 24 Sep 2021, 13:59


rich2005 wrote:
24 Sep 2021, 13:05
I have an idea what is wrong but only an idea.

I can reproduce the gradient layer 'vanishing' using Gimp 2.10.28 in kubuntu 20.04 Strangely the using a different computer and Gimp 18.04 the plugin works as expect. The only real difference is the version of GEGL and I suspect that the cause.
That is linux and I think Issabella uses Windows and everything is working as expected there, both a regular Gimp 2.10.28 and a samj Gimp 2.10.28 portable So who knows ? Not me.

This sort of fix, works for me. Lines 97 and 98 commented out. It does mean that you need to apply the layer mask yourself
hello rich2005,

I think I'm not tuning in correctly to the problem that's going on around here. :hammer_head:

When watching your mp4 I had the impression that you produced the expected plug-in Selection to Gradient Border (1) - viewtopic.php?f=3&t=2739 , which would not be the same as if waiting for the Gradient Border Select (2) - viewtopic.php?f=3&t=2737&hilit=GRADIENT+BORDER

While one (2) only produces a selection of the edge using a gradient as a mask, letting the user apply the desired effect manually, the other (1) already applies the gradient automatically.

I also had a problem using this plug-in with the brush (2 hardness 100 - size 51) with thickness 50 for the mask edge:

The generated selection was visible in the 'Selection Editor' window, and it was even possible to save it to a channel, but impossible to use it as a selection by the plugin, or to view the march of ants from that selection.

So I reduced the brush size from 51 to 20, and the thickness from 50 to 35 and somehow everything worked as expected.
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston

Issabella
Script Tester
3rd Place
3538 Post(s)

Post#5 by Issabella » 24 Sep 2021, 14:51


Krikor and Rich2005, Thanks a lot for your interest and help.
Just with your plug-in, it is working perfect.
Attachments
Gradient to border.jpg
Gradient to border.jpg # (34.53 KiB) Viewed 212 times (Thumbnail | Recognize | Sq Tile | LNFI)
Issabella

Don’t be afraid to start over. It’s a new chance to rebuild what you want.

gimpturkey
Newly Registered
17th Place
632 Post(s)

Post#6 by gimpturkey » 24 Sep 2021, 18:17


Screenshot_2.jpg
Screenshot_2.jpg # (47.12 KiB) Viewed 187 times (Thumbnail | Recognize | Sq Tile | LNFI)
The final version of the layers I added
GIMP Learn rocks...

gimpturkey
Newly Registered
17th Place
632 Post(s)

Post#7 by gimpturkey » 24 Sep 2021, 18:35


gds.jpg
gds.jpg # (47.36 KiB) Viewed 184 times (Thumbnail | Recognize | Sq Tile | LNFI)
I added 23 layers
Last edited by gimpturkey on 24 Sep 2021, 19:09, edited 1 time in total.
GIMP Learn rocks...

gimpturkey
Newly Registered
17th Place
632 Post(s)

Post#8 by gimpturkey » 24 Sep 2021, 18:39


gds1.jpg
gds1.jpg # (53.02 KiB) Viewed 183 times (Thumbnail | Recognize | Sq Tile | LNFI)
I added 3 layers
Last edited by gimpturkey on 24 Sep 2021, 19:09, edited 1 time in total.
GIMP Learn rocks...

gimpturkey
Newly Registered
17th Place
632 Post(s)

Post#9 by gimpturkey » 24 Sep 2021, 18:56


yakuza.jpg
yakuza.jpg # (90.03 KiB) Viewed 182 times (Thumbnail | Recognize | Sq Tile | LNFI)
I added 20 layers.
GIMP Learn rocks...

gimpturkey
Newly Registered
17th Place
632 Post(s)

Post#10 by gimpturkey » 24 Sep 2021, 19:31


glred.jpg
glred.jpg # (104.9 KiB) Viewed 175 times (Thumbnail | Recognize | Sq Tile | LNFI)
GIMP Learn rocks...


GIMP/GL:  Tutorials | Tips | 🡆 Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply New Topic
  • Similar Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 5 guests