felipecsl/GifImageView

getNextFrame() never return currentFrame

hsy402 opened this issue · 1 comments

Thanks for making GifImageView library.
I am going to split animated gif image, so I am using getNextFrame() in for loop.
getFrameCount() return actual count number, but getNextFrame() doesn't.
getNextFrame return only 1st frame.

        for (int i = 0; i < n; i++) {
            bitmaps.add(gifDecoder.getNextFrame());
            saveBitmaptoJpeg(bitmaps.get(i), "test", "gif_sample" + i);
        }

This code makes 44 jpeg images same frame.
All images show first frame. What should I do? I think I'm in the wrong way.

I found right way.
Please, add "gifdecoder" in dependencies.
Thanks.