Page 1 of 1

'Glitter' Text Problem - PHP

Posted: 2008-08-06T15:05:23-07:00
by StephenP
Hi all,
I'm trying to get the method mentioned at http://imagemagick.org/Usage/anim_mods/#glitter to work, but I'm having trouble doing it with PHP. From the Windows command line, the example works properly, but using PHP's exec(), I can't seem to make it work.

Can anyone help me make it work / point me to another method?

Thanks,
Stephen

Re: 'Glitter' Text Problem - PHP

Posted: 2008-08-06T19:59:14-07:00
by fmw42
post your code.

Hope that Bonzo can reply then as he knows PHP with IM better than I.

Re: 'Glitter' Text Problem - PHP

Posted: 2008-08-06T20:43:37-07:00
by StephenP

Code: Select all

$string1 = "convert -size 100x100 -fill white -background none -gravity center -pointsize 90 label:Test   glitter_mask_trans.gif";
$string2 = "convert glitter_plasma.gif null: glitter_mask_trans.gif -matte -compose dst-in -layers composite        glitter_masked_trans.gif";

passthru($string1, $r1);
passthru($string2, $r2);

echo "$r1<br>$r2";
--> The first one returns 0 (OK), but the second one returns 1 (fail).

-Stephen

Re: 'Glitter' Text Problem - PHP

Posted: 2008-08-06T23:32:12-07:00
by fmw42
what version of IM are you using? -layers composite was only available as of v6.3.3-7

Re: 'Glitter' Text Problem - PHP

Posted: 2008-08-07T06:58:24-07:00
by StephenP
Thanks a lot, that would explain it:
Version: ImageMagick 6.0.7 09/06/04
I guess I'll just do it on a localhost instead of my web host.


-Stephen