Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GGR from Image
#1
Hi, is it possible to create a .ggr gradient file from an image ? If yes, please tell me how. Thanks.
Reply
#2
Faster and easiest way I know is from a script fu "Sample Gradient Along a Path" http://www.silent9.com/blog/archives/155...-Path.html

EDIT Author and link error (fixed)
Reply
#3
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
Reply
#4
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
Reply
#5
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.
Reply
#6
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/...g-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
Reply
#7
(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
Reply
#8
Thanks. I am yet to try scriptfu plugin. It was night and I was so happy that the GMIC one worked. Will try. Smile
Reply
#9
(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



.zip   sample-gradient-along-path.scm.zip (Size: 1.8 KB / Downloads: 105)
Reply
#10
The script, tt keeps counting and counting...

Not ending at all. I almost reached 20K count

   

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

   
Reply


Forum Jump: