Jump to content

Archived

This topic is now archived and is closed to further replies.

dennyb

Bulding animated gif on the fly

Recommended Posts

Perhaps someone can shed a little light for me. Several months ago we had a programmer who had managed to use PHP (I think exclusively) to build an animated gif "on the fly". He has since departed our company and with him apparently went the code. I know very little about PHP, but do know the basics he used to make it happen.
Initially a simple script was in place that used @imagecreatefromgif that merged some dynamic text into a static gif and displayed it. What our long lost friend had done was to use this same method to merge the dynamic text onto a series of gif's (the individual animation frames) saving each rather than displaying them. When this was done, the code 'assembled' the individual files into a single animated gif, ultimately displaying it. The effect was static text on an animated background. We've made many unsuccessful atttempts at reproducing this effect, and haven't been able to find anything similar on the web. I'm begining to suspect that there may have been some other unknown non-PHP element involved. To the true PHP experts, does this sound like something that is possible purely with PHP? Thanks in advance for any suggestions, and please excuse my obvious ingorance in general.

Dennis

Share this post


Link to post
Share on other sites

Interesting problem.

I had a search and found this (http://www.imagemagick.org/) which could take multiple images (frames) and convert them into an animated gif. There is a php module her [a href=\"http://pecl.php.net/package/imagick\" target=\"_blank\"]http://pecl.php.net/package/imagick[/a]

Share this post


Link to post
Share on other sites
[!--quoteo(post=353712:date=Mar 10 2006, 08:41 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Mar 10 2006, 08:41 PM) [snapback]353712[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Interesting problem.

I had a search and found this (http://www.imagemagick.org/) which could take multiple images (frames) and convert them into an animated gif. There is a php module her [a href=\"http://pecl.php.net/package/imagick\" target=\"_blank\"]http://pecl.php.net/package/imagick[/a]
[/quote]
[a href=\"http://ffmpeg-php.sourceforge.net/\" target=\"_blank\"]http://ffmpeg-php.sourceforge.net/[/a]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.