Re: [GD-DEVEL] Transparency Optimization in gd_gif_out.c
| From: | Pierre | Date: | Sun, 06 Jan 2008 22:25:49 +0000 |
| Subject: | Re: [GD-DEVEL] Transparency Optimization in gd_gif_out.c | ||
| References: | 1 2 3 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-307@lists.php.net to get a copy of this message | ||
Hi David,
On Jan 6, 2008 11:11 PM, David Reiss <dreiss@cs.stanford.edu> wrote:
> Sure. I've attached anim.c, which is just a main function wrapped
> around the example in the documentation for gdImageGifAnimAddCtx,
> anim-old.gif, which is the output of anim.c linked with the stock
> version of libgd, and anim-new.gif, which is the output of anim.c
> linked with the break statement commented out. The two images look
> identical in Firefox, but if you open them up in GIMP, you can see
> that the second and third frames of anim-old.gif only have one
> transparent pixel per horizontal line, while anim-new.gif looks
> correct.
Did you not invert new and old? I see the one pixel per line but in
new not in old.
If yes, then there is a bug, the frame optimization did not work
(since years :). It should actually be transparent for the white areas
that do not change since the last frame.
Can you open a bug in http://bugs.libgd.org please? It will be
easier
to comment and follow the changes.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org