script don't work

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: script don't work

Post by el_supremo »

You didn't create an image to draw the text on, you only had an empty magick wand. Add this between the NewPixelWand and PixelSetColor calls:

Code: Select all

PixelSetColor($pwand,"white");
MagickNewImage($resource,100,60,$pwand);
Adjust the size and colour of the image to suit.

Pete
Post Reply