dennyb Posted March 10, 2006 Share Posted March 10, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/4629-bulding-animated-gif-on-the-fly/ Share on other sites More sharing options...
redarrow Posted March 10, 2006 Share Posted March 10, 2006 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 Link to comment https://forums.phpfreaks.com/topic/4629-bulding-animated-gif-on-the-fly/#findComment-16215 Share on other sites More sharing options...
redarrow Posted March 10, 2006 Share Posted March 10, 2006 [!--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] Quote Link to comment https://forums.phpfreaks.com/topic/4629-bulding-animated-gif-on-the-fly/#findComment-16224 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.