felipecsl/GifImageView

First frame is overlapped over last frame on tranparent animated GIF

lhoracek opened this issue · 4 comments

I have looping transparent GIF and when the loop restarts, first frame is displayed over last frame from the sequence.

I made OnFrameAvailable listener and i do processing the frames to have alternating color background and then the single frame drawn there. The last frame contains both of the images. Can there be any problem with DISPOSAL_PREVIOUS for the last / first frame progression? It is displayed correctly in browser, mac preview etc. It is mostly trasparent animated gif so the two frames are visible as overlayed

Could you share your GIF? I had similar problem with following image,
cat

and it looks like working well after following patch. (GifDecoder.java)
2016-12-27 12 23 54

I just want to know my code is right.

Unfortunately I can't share the original picture, but I will try finding or creating some that has similar issue. That that seems to be the right fix.

Thanks for confirmation. I'll submit a PR.