Gimp-Forum.net
GGR from Image - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: GGR from Image (/Thread-GGR-from-Image)

Pages: 1 2 3 4


GGR from Image - meetdilip - 10-10-2021

Hi, is it possible to create a .ggr gradient file from an image ? If yes, please tell me how. Thanks.


RE: ggr from Image - PixLab - 10-10-2021

Faster and easiest way I know is from a script fu "Sample Gradient Along a Path" http://www.silent9.com/blog/archives/155-GIMP-Script-Sample-a-Gradient-along-a-Path.html

EDIT Author and link error (fixed)


RE: ggr from Image - rich2005 - 10-10-2021

another way

Use the gimp_gmic_qt plugin. In the rendering section, Gradient (from line)

That gives a pair of points (red and blue) that drag around. Give it a name. Ok it and it writes the file into your user profile gradients folder.

Then refresh the Gradients dock for it to show.

screenshots https://i.imgur.com/Er8XMFo.jpg


RE: ggr from Image - meetdilip - 10-10-2021

Great !! Let me try Smile

(10-10-2021, 05:00 PM)rich2005 Wrote: another way

Use the gimp_gmic_qt plugin. In the rendering section, Gradient (from line)

That gives a pair of points (red and blue) that drag around. Give it a name. Ok it and it writes the file into your user profile gradients folder.

Then refresh the Gradients dock for it to show.

screenshots https://i.imgur.com/Er8XMFo.jpg

I tried this one first. Everything works but the palette is not seen anywhere. How to fix ? Thanks.

Update :

Found it, thanks


RE: ggr from Image - meetdilip - 10-10-2021

How can I make sure that the .ggr has only 6 or 8 colours? Now there are so many colours that Inkscape is crashing when I try to adjust them. Thanks.


RE: ggr from Image - rich2005 - 10-10-2021

For gmic: try setting Sampling down to 3 or 4 and Length maybe 10

That gives hard boundaries to the colours so if you need a blend either try Edit: Ofnuts plugin as posted by PixLab (I was sure he referenced Ofnuts, however)
or
This is a script-fu, goes in your scripts folder. http://www.silent9.com/incoming/scripts/sample-gradient-along-path.scm Probably similar to Ofnuts plugin.

As the name, make a path. Run the script, it is a right click in the Gradients dock. Give it a name. Try settings as this demo: https://i.imgur.com/NCFHtR2.mp4


RE: ggr from Image - PixLab - 10-11-2021

(10-10-2021, 08:25 PM)rich2005 Wrote: Edit: Ofnuts plugin as posted by PixLab (I was sure he referenced Ofnuts, however)
As the name, make a path. Run the script, it is a right click in the Gradients dock. Give it a name. Try settings as this demo: https://i.imgur.com/NCFHtR2.mp4

Indeed I did referenced Ofnuts, I was so-so sure it was from Ofnuts, so I did put a link to Ofnuts SF, while doing so I did take a look at his list and I saw "Gradient along Path", but I did follow the topic here on GF, and it's not the same plugin, so I started to get confused, > I went to my plugin folder, > I got confused even more as it was not there, then did discovered it was a script-fu (with the plugin browser), then came back here to fix the problem Big Grin


RE: ggr from Image - meetdilip - 10-11-2021

Thanks. I am yet to try scriptfu plugin. It was night and I was so happy that the GMIC one worked. Will try. Smile


RE: ggr from Image - PixLab - 10-11-2021

(10-11-2021, 06:23 AM)meetdilip Wrote: Thanks. I am yet to try scriptfu plugin. It was night and I was so happy that the GMIC one worked. Will try. Smile

I did try to download it and it seems I'm downloading a zero kb scm (empty script)  Huh
I put the one I have here in case of something is wrong on that website


[attachment=6833]


RE: ggr from Image - meetdilip - 10-11-2021

The script, tt keeps counting and counting...

Not ending at all. I almost reached 20K count

[attachment=6834]

I downloaded it from the rich2005 link. It is 5.84 KB.

Ok, it crossed 20K and still running/counting. Unable to stop it unless I close the GIMP.

I am occasionally getting some errors with the GMIC plugin too

[attachment=6837]