Page 1 of 1

Dynamically creating animated GIFs

Posted: Wed Jun 15, 2005 9:48 am
by hukkas
Hi all

Is it possible to write a PHP script to create an animated GIF, from a series of JPEG / GIF images? I want to have a small animation display a sequence of product images, but build the animation on an ad-hoc / daily basis.

Thanks in advance

Posted: Wed Jun 15, 2005 9:56 am
by pickle
Animated gifs are SOOO 1998 :) I don't think GD can make animated GIF's, but ImageMagick might be able to.

You might want to consider alternate methods. An animated gif is basically a series of different gif files, so the filesizes can get quite large. If the size of the image is big enough for a person to get a good look at the product, then the image is probably to large a file to be practical on the web (depending of course on the number of products). Have you thought about using Javascript to change the image every 1,2,5,X seconds?

Posted: Wed Jun 15, 2005 10:23 am
by JayBird
flash may be a better option.

The flash on this page was generated entirely with PHP

http://jerryscript.hostrocket.com/php/ming/lessons/