Jump to content


Photo

Bulding animated gif on the fly


  • Please log in to reply
2 replies to this topic

#1 dennyb

dennyb
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 10 March 2006 - 07:48 PM

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



#2 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 10 March 2006 - 08:41 PM


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]

Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc

#3 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 10 March 2006 - 09:09 PM

[!--quoteo(post=353712:date=Mar 10 2006, 08:41 PM:name=redarrow)--][div class=\'quotetop\']QUOTE(redarrow @ Mar 10 2006, 08:41 PM) View Post[/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]
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users