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

Portion of previous frame erroneously appearing over current frame #27

Open
beaswag opened this issue Jan 10, 2024 · 0 comments
Open

Portion of previous frame erroneously appearing over current frame #27

beaswag opened this issue Jan 10, 2024 · 0 comments

Comments

@beaswag
Copy link

beaswag commented Jan 10, 2024

I am processing a GIF file using gifdec. In a certain GIF I have made, when decoded using gifdec, the 3rd frame of the GIF erroneously shows a portion of the 2nd frame.

I have made a GIF which replicates this issue. The GIF is exported using Aseprite.
bg

This is how the 3rd frame appears when decoded using gifdec. It is supposed to appear as a solid color.
image

It's likely that the incorrect behaviour is related to the GIF's frame optimization, it seems like the portion of the image which is showing up as the 2nd frame should actually be showing as the 1st frame, as that portion of the 1st frame is the same as that same portion in the 3rd frame.
This may be due to an incorrect implementation of frame disposal, but I don't know enough about the GIF format though to be able to say for certain that this is the cause.

I am accessing the image data using gif->frame, because my use case requires reading indexed image data from the GIF. If this is incorrect, please let me know.

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

1 participant