Jump to content

Bulding animated gif on the fly


dennyb

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

Link to comment
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]
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.