'Glitter' Text Problem - PHP

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
StephenP

'Glitter' Text Problem - PHP

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 'Glitter' Text Problem - PHP

Post by fmw42 »

post your code.

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

Re: 'Glitter' Text Problem - PHP

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: 'Glitter' Text Problem - PHP

Post by fmw42 »

what version of IM are you using? -layers composite was only available as of v6.3.3-7
StephenP

Re: 'Glitter' Text Problem - PHP

Post 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
Post Reply