Solved

Animated Gifs Creation

Posted on 2001-08-20
5
446 Views
Last Modified: 2013-11-19
How could I create dynamic animated gif?
0
Comment
Question by:cybernietic
5 Comments
 
LVL 8

Expert Comment

by:us111
ID: 6405509
Impossible with the basic images php functions. I may wrong...
Use Flash better, the ming library is good but you must have ming enabled with PHP
0
 

Expert Comment

by:steveyoder
ID: 6408500
us111 is correct,
Dynamic animated GIFs won't be around for another 300 years at least. Your best bet is to create animated GIFs for every situation possible and write the code to, based on the users responce, load the appropriate image.

Or, if you want to use flash, check out the following information:

To use Ming with PHP, you first need to build and install the Ming library. Source code and installation instructions are available at the Ming home page : http://www.opaque.net/ming/ along with examples, a small tutorial, and the latest news.

Download the ming archive. Unpack the archive. Go in the Ming directory. make. make install.

This will build libming.so and install it into /usr/lib/, and copy ming.h into /usr/include/. Edit the PREFIX= line in the Makefile to change the installation directory.

Good luck!

0
 
LVL 8

Accepted Solution

by:
us111 earned 200 total points
ID: 6410105
I may get a solution.

- Create your dynamic gif with the image functions
- use imagemagick (http://www.imagemagick.org) to create the animated gif

I've never tried but it could a helpful solution.


0
 
LVL 4

Expert Comment

by:gizmola
ID: 6414551
Yeah imagemagick may work, by using it's convert program.

convert -delay 5 frame*.gif animation.gif

Would theoretically create an animated gif file out of the frame*.gif files it found.

The issue is that unisys owns the patent on LZW compression scheme used on the internal data inside a .gif file.  

BTW, for more info on the internals of an animated .gif reference the GIF89a specification.

For a while Unisys was going after people who made software that rendered .gif files, seeking to collect royalties from them.  I don't know what the status of projects like Imagemagick have worked out at this point, but in the past many people threatened and/or actually removed support for GIF because of threats from the unisys lawyers.  The .png format was created as an alternative, and is also supported by the latest browser versions.  It's an alternative format that you might want to consider.

This is the reason everyone is so unsure of the prospects of a GIF rendering solution.

0
 
LVL 1

Author Comment

by:cybernietic
ID: 6416850
Thank you all for your help.

The first "cheap" solution I got was to animate the gif with a javascript.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to count occurrences of each item in an array.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question