Re: [GD-DEVEL] Transparency Optimization in gd_gif_out.c

[email protected] (Pierre)
Newsgroups php.gd.devel
Message-ID <[email protected]>
Hi David,

On Jan 6, 2008 11:11 PM, David Reiss <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.