spread pixels colors at selection border
This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.
This is a read-only list on gimpusers.com so this discussion thread is read-only, too.
spread pixels colors at selection border | pitibonom | 21 Aug 11:09 |
spread pixels colors at selection border | Ofnuts | 21 Aug 12:43 |
spread pixels colors at selection border | Kokopalen | 21 Aug 12:54 |
spread pixels colors at selection border | pitibonom | 21 Aug 13:32 |
spread pixels colors at selection border | Koko Palen | 21 Aug 16:57 |
spread pixels colors at selection border | Ofnuts | 22 Aug 00:23 |
- postings
- 15
spread pixels colors at selection border
Hi :)
Does anyone know wether it's possible to spread the pixels colors considering the normal vector of the selection curve ?
I post an image that would be the approximate result of what i imagine.
thanks for your answers :)
regards.
-
herb blur to background
herb.jpg (34.5 KB)
spread pixels colors at selection border
On 08/21/2013 01:09 PM, pitibonom wrote:
Hi :)
Does anyone know wether it's possible to spread the pixels colors considering the normal vector of the selection curve ?
I post an image that would be the approximate result of what i imagine.
thanks for your answers :)
Yes, with a not-so-trivial script that likely remains to be written...
spread pixels colors at selection border
El 21/08/2013 13:09, "pitibonom" escribi:
Hi :)
Does anyone know wether it's possible to spread the pixels colors
considering
the normal vector of the selection curve ?
Maybe you could implement a script to do the following:
- Border selection with a width of 1 pixel.
- Copy.
- Paste as new layer.
- Scale this new layer to be one pixel bigger.
- Paste as new layer, scale to be two pixels bigger.
- Paste as new layer, scale to be three pixels bigger.
- ... Repeat as many times as needed.
- Flatten the image or combine layers.
Not sure if that is something similar to what you want to do, but it would be curious to see how it looks like :).
Regards, Koko.
- postings
- 15
spread pixels colors at selection border
El 21/08/2013 13:09, "pitibonom" escribi: considering
Maybe you could implement a script to do the following: - Border selection with a width of 1 pixel. - Copy.
- Paste as new layer.
- Scale this new layer to be one pixel bigger. - Paste as new layer, scale to be two pixels bigger. - Paste as new layer, scale to be three pixels bigger. - ... Repeat as many times as needed. - Flatten the image or combine layers.Not sure if that is something similar to what you want to do, but it would
be curious to see how it looks like :).Regards, Koko.
oh so as a basic function, or event with a plugin, this thingie do not exist ? That's what i was wondering, as it's something that can be done in PS. OK for the script. Unfortunately i'm absolutely not able to code a plugin for gimp, not knowing how it's done and lacking of knowledge on the 'how to'. Nevertheless, koko, i think you principle works from the center of the picture. A selection on the upper rightmost half of the pic would not give the expected result. Your idea would look like the zoom blur wich is done from the image center as blur center ( i think ). But it should work with taking each selection island center ant iterate zoom blur through them....
spread pixels colors at selection border
Well, I don't know if a tool like that already exists in Gimp (maybe in GMIC?). Let's hope someone else can help us there. If it exists in PS maybe it exists too here (btw, I'm not familiar with PS, but maybe the name of that tool would help to find it in Gimp).
About the centering, if there is an active selection, Gimp takes its center to position the pasting. So, if you copy and then paste, both regions would overlap. But yes, it's more or less like a positioned zoom blur.
I'm not very good with scheme, so please don't be too harsh with me, but I've made a dirty script to show you (and too see it myself, too :D) how that would work. The script is just a draft (it doesn't check errors, always uses the first layer, there are magic numbers, ...), but I attach two pictures that show the before and after (selecting a rectangle in the middle). It's not perfect, but maybe it could help you.
Regards, Koko.
2013/8/21 pitibonom
El 21/08/2013 13:09, "pitibonom" escribi: considering
Maybe you could implement a script to do the following: - Border selection with a width of 1 pixel. - Copy.
- Paste as new layer.
- Scale this new layer to be one pixel bigger. - Paste as new layer, scale to be two pixels bigger. - Paste as new layer, scale to be three pixels bigger. - ... Repeat as many times as needed. - Flatten the image or combine layers.Not sure if that is something similar to what you want to do, but it would
be curious to see how it looks like :).Regards, Koko.
oh so as a basic function, or event with a plugin, this thingie do not exist ?
That's what i was wondering, as it's something that can be done in PS. OK for the script. Unfortunately i'm absolutely not able to code a plugin for
gimp, not knowing how it's done and
lacking of knowledge on the 'how to'. Nevertheless, koko, i think you principle works from the center of the picture.
A selection on the upper rightmost half of the pic would not give the expected
result. Your idea would look like the zoom blur wich is done from the image center as blur center ( i think ). But it should work with taking each selection
island center ant iterate zoom blur through them....-- pitibonom (via www.gimpusers.com/forums) _______________________________________________ gimp-user-list mailing list
List address: gimp-user-list@gnome.org List membership: https://mail.gnome.org/mailman/listinfo/gimp-user-list
spread pixels colors at selection border
On 08/21/2013 02:54 PM, Kokopalen wrote:
El 21/08/2013 13:09, "pitibonom" escribi:
Hi :)
Does anyone know wether it's possible to spread the pixels colors
considering
the normal vector of the selection curve ?
Maybe you could implement a script to do the following: - Border selection with a width of 1 pixel. - Copy.
- Paste as new layer.
- Scale this new layer to be one pixel bigger. - Paste as new layer, scale to be two pixels bigger. - Paste as new layer, scale to be three pixels bigger. - ... Repeat as many times as needed. - Flatten the image or combine layers.Not sure if that is something similar to what you want to do, but it would be curious to see how it looks like :).
I would do it differently, using a path (which is very easily obtained from the selection):
- walk the path by fixed steps:
- at each step:
-- sample the color on the path
-- compute the normal segment (with length=width) at the point a
half-step before (which is the "after" of the previous step)
-- compute the normal segment at the point a half-step after
-- create a quadrangle path from these two segments
-- create a selection from that path
-- bucket-fill with the color sampled above
Might be a bit slow :)