Attachment | Size |
---|---|
smartgradient.py.txt | 4.9 KB |
This is a simple gradient plugin for GIMP, written in python. It applies a linear gradient to a rectangular selection, in one of four directions, using the colours of the pixels at the starting edge, and fading to the background colour, over the width, or height of the selection. To try this out, all you need to do is download the script, and store it in the gimp plugins folder, in your home directory. Remember to set the executable flag on the file. An example of use may be found on my site : www.andyshelley.co.uk/gimpgradient/index.php
Edit : I have now updated the script, so that the gradient effect appears on a new layer.
Edit: The script is now updated to give extra fading options.
Comments
Nice script What's the
Nice script
What's the chances you can get it to respect non rectangular selections?
Holes in selections?
Maybe folow a path?
Maybe the grad effect can be placed on a new layer, then it can be edited to fit the required patch.
Thank you anyway, in it's current form it is going to be usefull
or after you may use a layer
or after you may use a layer mask
update
Thanks for the comments. I have now updated the script, so that the gradient effect appears on a new layer.
Update 2
I have added another update, to allow the gradient to optionally fade out to the selection edge colours, rather than the background colour. The website example is upgraded to show this.