h_i_d_d_e_n — 2007-06-22T14:30:56-04:00 — #1
I hope if this topic is written in the suitable forum.
Simply, I want to write a script that upload the animated GIF images and write the copyright text of my site on it. I'm using GD library to do that, but the problem is, that the gd library convert the animated gif image into FIXED image after writing. The image lose the animation and become normal gif image.
I tried to convert the GIF animation into frames and save every frame in a single image, then write what I want on every individual image and finally recombine the frames again to generete the animation. But the the animation lose the correct (timing), I mean the frames repeated with very high spead and without the original timing.
Is there any method to maintain the animation timing or to write on the animated GIF image using GD without split the frames, please tell me.
Thanx in advance & I'm waiting from you
spikez — 2007-06-23T08:35:26-04:00 — #2
This sounds like a job for imagemagick or a graphics program like PS2 rather than GD.
GD is good but has it's limitations.
The imagemagick program is a very powerful server based application that your host may or may not have so you will need to contact them if it doesn't appear on your phpinfo list.
have a look at www.imagemagick.org for examples
PS: Welcome to the forums
earl_grey — 2007-06-23T11:57:35-04:00 — #3
I have just found that there is MagickWand PHP extension, which allows you to use ImageMagick as functions rather command line tools. Haven't used it myself, though.
byron3_earthlink — 2007-06-23T14:22:58-04:00 — #4
You need a Gif construction application, these applications allow you to disassemble an animated gif frame by frame. You can alter individual frames and then reconstruct the gif. Any of the professional quality apps will allow you to specify timing between frames. A quick Google search netted me results like :
Alchemy Mindworks GIF Construction Set Professional
GIF Animation Tools, Techniques, Examples and Resources
This second resource contains insight into header information including a special Netscape identifier, that informs the browser how (and how fast) to loop the images.