A couple of weeks ago I wrote a script (Gradient Map All Layers) that would gradient map all the layers in an image (initially created to work on animations). A neat feature of the script is that it allows the gradient map to reverse the gradient when it's applied (the gradient map option in GIMP doesn't normally allow for a reversed gradient). David Wood asked me if I could create/modify a script that would do this on a single layer. After showing him my Gradient Map All Layers script, he liked what it did and requested modifications so that it would work on a single layer as well. Below is the result of his request. The script can work on all layers or just a single layer. You pick the gradient, choose if it's to be reversed, and whether it works on all/one layer(s).
Copy and paste the code below into a text file. Save it with an ".scm" extension in your GIMP scripts folder (ie.. C:\Program Files\GIMP-2.0\share\gimp\2.0\scripts). Refresh your scripts (Filters > Script-Fu > Refresh Scripts) and you can find it under Colors > Map > Ultimate Gradient Map...
Or you can download the script already saved as a scm.
Last edited by fencepost
on Fri Jan 24, 2014 9:48 pm, edited 1 time in total.
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime! Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.