[magick-users] gradient to transparency

Anthony Thyssen anthony at griffith.edu.au
Tue May 6 22:35:40 PDT 2008


"Christoph P. Kukulies" on  wrote...
| I'm seeking for a general solution to allow for producing gradients
| from color to transparency either linearly or (even better) after 
| some function (exp or other).
| 
| Reason behind is producing shadows for images or weblayouts over
| their respective background image so that I get a smooth
| transition from some opaque shadow to transparency.
| 
| Thanks a lot in advance.
| 
A vertical linear one is easy...

   convert -size 100x100 gradient:firebrick-none gradient_trans.png

Others are harder and may need either special generation or further
processing depending on what you want. such as what fred gave you in his
response.


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
     "Good programmers write readable code."
     "Yeah, but REALLY good programmers can read MY code."
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list