(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
06-15-24 01:29 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - GD GIF
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
HyperHacker
Posts: 90/5072
Originally posted by Gavin
Although I'm not sure what you were saying about not working on windows systems (never tried it before). Did you mean server-side or client-side?

Server-side.

F:\>/usr/bin/convert -delay 2 -loop 10 /tmp/test*.gif /var/www/html/Tests/Test-Anim.gif
The system cannot find the path specified.

Windows doesn't have such a program... nor a /usr, /tmp or /var directory.
Elric
Posts: 34/164
Well, I did some research, and GD's website says that the latest version does, in fact, support creation of animated GIFs. However, after looking over PHP.Net for the command(s) to do so, I discovered that PHP itself doesn't support creation of animated GIFs.
Gavin
Posts: 17/181
Originally posted by HyperHacker
All that hack really does is make several still GIFs and join them together by calling a program. It won't work on Windows systems without some modifcations, and is indeed quite hackish.

I know it's possible to make animated GIFs, because I've seen sig images displaying game stats in them. Not sure how they did it though.

although like you said "hackish", I would consider that better than the initial "impossible" assesment, especially considering it's transparent to the user (right?). Although I'm not sure what you were saying about not working on windows systems (never tried it before). Did you mean server-side or client-side?


Going along those lines, I would recommend forgoing any additional libraries and looking into a javascript solution (creating mulitple GIF's and manipulating how and when they are shown with javascript and zIndex + display CSS properties or something.. just off the top of my head) if you are really dying to make this work. Although from what it sounds like so far nothing you work with is going to be a "really great" solution... *shrugs*
Elric
Posts: 33/164
Good luck. Not only have I never seen an animated image made with GD, but I can't even find anything about it on Google.
HyperHacker
Posts: 75/5072
All that hack really does is make several still GIFs and join them together by calling a program. It won't work on Windows systems without some modifcations, and is indeed quite hackish.

I know it's possible to make animated GIFs, because I've seen sig images displaying game stats in them. Not sure how they did it though.
Gavin
Posts: 16/181
Check the first comment on this page. It makes a reference to ImageMagick. So apparently it is possible, but not with the default PHP library set.
Deleted User
Posts: 3/-7750
I am pretty sure that is impossible, that would be a cool idea though. I haven't looked into it much but I have tried animated gif's in GD and it just shows the first frame.
Arthus
Posts: 21/142
Do you think it would be possible in any way to make an image through PHP / GD that's also an animated GIF? I'm just trying out new things and thought it would be pretty cool to do.
Acmlm's Board - I3 Archive - Programming - GD GIF


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.011 seconds; used 350.84 kB (max 398.05 kB)