[magick-users] MagickWand for PHP: how to use a gradient fill?

Daniel Johnson il.basso.buffo at gmail.com
Fri Nov 9 07:25:26 PST 2007


I'm using ImageMagick on a PHP server to dynamically add text to an image.
I'd like to be able to define a gradient to use as the fill for the text.
I'm pretty certain that I'll be using DrawSetFillPatternURL, but how do I
create the pattern to which the URL refers?

I'd welcome examples in MagickWand or PECL Imagick (I have both installed,
and the syntax is pretty well interchangeable).

Regards,
Daniel J.

ImageMagick 6.3.6-9
PECL Imagick 2.0.1
MagickWand for PHP 1.0.5
PHP 5.2.4


More information about the Magick-users mailing list