(Oops sent this to wrong list address first.)
On Tue, 19 Oct 2004, Greg Donald wrote:
> On Tue, 19 Oct 2004 10:32:01 +0300 (EEST), Jaakko Hyvätti
> <jaakko@hyvatti.iki.fi> wrote:
> > I hope people can test this patch and suggest improvements, and that
> > eventually the patch makes it into php-4 and php-5. I'll try to include
> > examples and updated manual patches for the new functions on that page
> > later. Please do not hesitate to contact me for any questions or
> > suggestions!
>
> You probably want to post this info to php-dev. php-general is for
> users of PHP, not necessarily the actual PHP developers.
Well while I waited for the official GD to be updated, I wanted to give
users some idea what might be coming up. Now as the gd-2.0.30 includes
animated gifs, I would like to suggest that the developers update to that
version the bundled gd. My patch at http://www.iki.fi/hyvatti/sw/
implements the PHP functions also. Included with this email is a patch
to just php to add the function wrappers for new gd features, without
the gd patches.
The patch implements three new functions, imagegifanimbegin(),
imagegifanimadd(), and imagegifanimend(). With these functions, animated
gif images can be created on the fly with php. The documentation for the
functions is included in php-doc-anim.diff on the above url (this may be
outdated). Note that the animations are not optimized as heavily as with
some programs like gifsicle, but if you plan carefully you can get fairly
good optimization on the fly.
GD-2.17 perl module also implements these functions now.
Please consider these patches.
Regards,
Jaakko
--
Foreca Ltd Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland http://www.foreca.com