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

Coalesce issue with transparent gifs #23

Open
bytezeroseven opened this issue Aug 14, 2020 · 1 comment
Open

Coalesce issue with transparent gifs #23

bytezeroseven opened this issue Aug 14, 2020 · 1 comment

Comments

@bytezeroseven
Copy link

I am loading a transparent gif in which the circle keeps getting smaller and smaller and finally disappears. The problem is that when I set cumulative to true, the previous frames are merged and the effect is ruined. I am also loading some other gifs in which coalesce is required. I think there should be an automatic way for internally determining which gifs need coalesce and which do not. Does the gif format contains any information about using coalesce?

@bytezeroseven
Copy link
Author

bytezeroseven commented Aug 14, 2020

Okay I think I know what this library is missing. It doesn't use use disposal mode anywhere.
Disposal = 1 means dont clear the background. There should be a check for this mode while forming the frame if cumulative is true.

EDIT: Source https://docstore.mik.ua/orelly/web2/wdesign/ch23_05.htm#:~:text=Disposal%20method%20gives%20instructions%20on,areas%20of%20a%20later%20frame.

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