Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The first frame of animated gifs with transparency contains uninitialized (garbage) pixels #41

Closed
Oddwarg opened this issue Mar 18, 2022 · 1 comment

Comments

@Oddwarg
Copy link

Oddwarg commented Mar 18, 2022

Unsure if this is the correct project to report this bug, but the problem is that transparent pixels are allocated, but never initialised to any value for the first frame in a gif file. This can be fixed by inserting the line
memset(FrmPict, 0, Width * Height * sizeof(tPixel));
at line 47 of tImageGif.cpp.

Incorrect, garbage background:
garbage

Correct, clean background:
fixed

@bluescan
Copy link
Owner

It's a fine place to report this -- plus you supplied the fix which is even better. It's fixed in the tacent library. You'll probably need to reconfigure to get cmake to fetch the latest tacent lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants