Hi,
Does anyone know of any scripts that will convert an animated .gif to either a .swf (ideal) or seperate images? (either .gifs of jpegs) ?? I've looked all over but can't find any actual php code that will do that!
thanks for any help boombanguk
How about using Imagemagick for this(using exec function)?
example: convert animgif.gif[0] frame1.gif
..would extract the first frame.
ok but how do i get that running on my server? and is there no other php code out there that can convert an animated .gif??
Maybe like this?
exec('convert animgif.gif[0] frame1.gif');
Googling for imagemagick returns this as the first result: http://www.imagemagick.org/script/index.php
yes but I have shared hosting, so how can I use that? doesn't it have to be installed by the server admin? (which in my situation won't happen)
The PHP-Bundled GD libraries do not work with animated gifs right now (at least that I can find). You could write some binary reader to extract portions of a GIF, but that is a big undertaking.
EDIT: A couple links to help you out: http://members.aol.com/royalef/gifabout.htm http://www.atpm.com/6.08/graphicsandtheinternet.shtml http://schmidt.devlib.org/file-formats/gif-image-file-format.html