molly wrote:
beautiful
I tried that sample and image by RobA, nothing is happening, I didn't get any kind of dialogue. I deleted his script, went to latest gimp scripts above... and I now get a dialogue when I right click the gradients. That is as far as I can get... I dont get a new image when I do that, it just goes to one of the gradients already in the list. I opened a picture and tried to make a gradient from it and I get a gradient already on the list.
I noticed that when I right click and choose sample along gradient, the dialog appears behind GIMP. I don't know why that happens but I have to move to my task bar and select it to bring the dalog to the front.
So, first I use the path tool to create a path over the image I want to sample, then right click on the gradient dialog and select Sample Gradient Along Path. I bring the dialog to the front, and enter the name of the New Gradient. I increase the Number of samplea to 256, ensure I have the correct image/drawable/path selected and click OK. It then creates a new gradient in the list with the name I specify.
I got this from a picture of a rainbow.