A script to create a new gradient by sampling along a path drawn in an image.
Example and usage are here: http://ffaat.pointclark.net/blog/archives/155-GIMP-Script-Sample-a-Gradi...
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.