Hi, I tested in IM 6.4.1-1 Q16-hdri:
convert -size 100x100 gradient:firebrick-none gradient_trans.png and convert -size 100x100 gradient:firebrick-none gradient_trans.gif The first one in png format works fine, but the second one in gif format does not produce the same results. Seems like it generates the top half, but goes completely transparent for the bottom half. I would suggest reporting it as a potential bug on the Bug forum at http://www.imagemagick.org/discourse-server/viewforum.php?f=3&sid=3aff57d6310a6278fd8c3e93fb4f3b32 >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> >> _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
