Skip to content

seekToFrameAndGet with subsampling returns blank bitmap #797

@crowbarsolutions

Description

@crowbarsolutions

Using version 1.2.24

GifDrawableBuilder builder = new GifDrawableBuilder();
builder.sampleSize(2);
builder.from(methodThatReturnsBufferedInputStream());       
GifDrawable gifFromBytes = builder.build();
Bitmap bs = gifFromBytes.seekToFrameAndGet(0);
gifFromBytes.recycle();

The resulting bitmap is blank (all black) when I use sampleSize with any parameter greater than 1. With sampleSize set to 1 I am getting the correct bitmap. I am using this GIF to test with: https://crowbarsolutions.com/test/content/test.gif

This issue doesn't happen when using version 1.2.19 but happens when you use any version after that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions