mogrify -draw text stopped working after upgrade

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

If anyone can recommend a more appropriate newsgroup for this question?

We recently upgraded from php 4.1.2 to php 4.3.9 and ImageMagick 5.5.7
to version 6.2.5.
I have a script that creates a random number image as a Turing Test,
and without changing that, it's stopped working right after the
But, only part of the mogrify command.

Here's the line I'm using:

$imagick = '/usr/local/bin/mogrify -pointsize 26 -draw 'text
'.$txRand.','.$tyRand.' "'.$rand.'"' -rotate '.$rRand.' -swirl
'.$sRand.' -charcoal 2 /var/www/html/verimgs/'.$mrand.'.gif';


PHP is executing the command OK, because it creates the image and does
the swirl and charcoal and the rotate, but it's not doing the -draw

If I echo $imagick it's perfectly formatted:

/usr/local/bin/mogrify -pointsize 26 -draw 'text 17,23 "659"' -rotate 2
-swirl 25 -charcoal 2 /var/www/html/home/verimgs/97531.gif

I can run that line in a command shell and it will perform perfectly.

According to the ImageMagick site:

I'm formatting the -draw switch just right.
But still, it won't print the numbers onto the image.

I don't get it. What may have changed in the upgrade to prevent this
script from working the way it did before?

Thanks for any suggestions.

Site Timeline