Page 1 of 1

Animated Gif PHP

Posted: 2008-05-09T04:24:59-07:00
by HaZzard
Hey,

i try to write some Text to an Animated GIF.

Code: Select all

exec("convert new.gif -font Arial -fill white -pointsize 20 -annotate +50+50 'TextText' out/test.gif");
The Problem is that the gif is created but no text on it :/

HaZz

Re: Animated Gif PHP

Posted: 2008-05-09T04:55:41-07:00
by Bonzo
This worked for me:

Code: Select all

<?php
$animation = "morph.gif";

$watermark = "output.png";

$watermarked_animation = "morph.gif";

exec("convert -resize 100x200 $animation -coalesce -gravity South \\
 -geometry +0+0 null: $watermark -layers composite -layers optimize $watermarked_animation ");
?> 
http://www.rubblewebs.co.uk/imagemagick ... =morph.gif

In this case the text was in a png image, I do not know if the same code will work for text.

Re: Animated Gif PHP

Posted: 2008-05-09T05:04:25-07:00
by HaZzard
Hey,
the main Problem is that the Text is dynamic!

Edit:
i tested this with this command:

Code: Select all

convert sig_dwarf.gif -coalesce -gravity South -geometry +0+0 null: test.png -layers composite -layers optimize output.gif
but there isnĀ“t a output.gif :/
Regards HaZz

Re: Animated Gif PHP

Posted: 2008-05-26T21:41:50-07:00
by anthony
I think we need some examples of what you are trying to do, if we are to make any sense.