A script to create a new gradient by sampling along a path drawn in an image.
Example and usage are here: http://www.silent9.com/blog/archives/155-GIMP-Script-Sample-a-Gradient-a...
This was tested under 2.6 but should work under 2.4
Please note the script registers under the Gradient Menu (from the gradient dialog). It will error out if called on an image that has no paths defined.