Solved

Animated Gifs Creation

Posted on 2001-08-20
5
449 Views
Last Modified: 2013-11-19
How could I create dynamic animated gif?
0
Comment
Question by:cybernietic
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 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