[magick-users] gradient to transparency
Bob Meetin
bobm at dottedi.biz
Thu May 8 11:43:27 PDT 2008
Anthony, all, I wrote a PHP script to generate gradients. Looking at
it and the output it looks fine, but color to transparent is not working.
http://www.dottedi.biz/tools/gradient_generator.php
To test, simple delete any input from the gradient lower or use the
color chooser to select "no color". The php code converts either option
to "none". I have it set to echo back the command which of course looks
right. Any thoughts?
Anthony Thyssen wrote:
> "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>
>
More information about the Magick-users
mailing list