hidefromkgb / gif_load

A slim, fast and header-only GIF loader written in C
80 stars 6 forks source link

Transparency not preserved after first frame #5

Closed orestis-z closed 5 years ago

orestis-z commented 5 years ago

First, thanks for the awesome work.

I noticed that the transparency is not preserved after the first frame on certain gifs. In the example below the transparent layer disappears after the first frame.

this ones transparency is even more problematic:

Thanks for the help in advance.

hidefromkgb commented 5 years ago

Okay, I see. When the decoder encounters a non-black transparency mark it doesn`t set all of the channels to 0, only the alpha. Fixed for the C example in c762113. Please check.

orestis-z commented 5 years ago

Ok, I encountered the issue on the python example, I didn't try the C example. Thanks for checking

hidefromkgb commented 5 years ago

Oh well. Shall fix it in the Python version soon.

hidefromkgb commented 5 years ago

Fixed.

Both Python and C shall return correct results now. Please verify if that`s so.

orestis-z commented 5 years ago

Works like charm. Thanks for the support!

(Verified in python version)

hidefromkgb commented 5 years ago

OK. Closing as fixed.