gifwrap icon indicating copy to clipboard operation
gifwrap copied to clipboard

Example of decoding Gif frames into PNGs.

Open phtaylor opened this issue 6 years ago • 4 comments

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

phtaylor avatar Jul 25 '18 19:07 phtaylor

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.

EchoTiger avatar Mar 26 '19 00:03 EchoTiger

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

phtaylor avatar Mar 26 '19 15:03 phtaylor

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.

jtlapp avatar Jul 21 '19 17:07 jtlapp

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

fahimk avatar Jul 27 '19 15:07 fahimk