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

Example of decoding Gif frames into PNGs. #10

Open
phtaylor opened this issue Jul 25, 2018 · 4 comments
Open

Example of decoding Gif frames into PNGs. #10

phtaylor opened this issue Jul 25, 2018 · 4 comments

Comments

@phtaylor
Copy link

Hi, we are migrating to using gifwrap to extract Gif frames, and we seem to be having a lot of trouble getting a correct frame.
Would it be possible to provide some simple sample code that shows how to handle using the frame bitmap to generate a sequence of Pngs. One for each frame.

This is the result we get now. After decoding a few frames we get extensive tearing, indicating we have something incorrect.

image

@EchoTiger
Copy link

EchoTiger commented Mar 26, 2019

I'm getting the same thing.
It seems like there's something wrong with the decoder.

Shame as well, I can't really find anything that's as simple of a solution as this.

@phtaylor
Copy link
Author

We ended up migrating to the amusingly named gifuct
https://github.com/matt-way/gifuct-js

@jtlapp
Copy link
Collaborator

jtlapp commented Jul 21, 2019

Sorry to take so long to get back with you. This looks like the sort of bug that #18 would have fixed. If you can provide the problem gif, I'd be happy to test it.

@fahimk
Copy link
Contributor

fahimk commented Jul 27, 2019

Not sure if this is the same issue, but this GIF seems to get messed up when I read and then write it: https://media.tenor.com/images/c674ba98c40f6793eaf10a1356c1c36a/tenor.gif

Screenshot of output:
tenor-output

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

4 participants