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

Gif decoder displays blank when given certain gifs #199

Closed
cody-young opened this issue Oct 18, 2014 · 5 comments
Closed

Gif decoder displays blank when given certain gifs #199

cody-young opened this issue Oct 18, 2014 · 5 comments
Labels

Comments

@cody-young
Copy link

I've been playing around with glide and I came across a gif that it doesn't seem to like. It's not giving me an error, just showing a blank screen.

http://i.imgur.com/QpMXaHq.gif

Thanks,
Cody

@cody-young
Copy link
Author

I just bumped my version to 3.3.1 (oops, didn't see the update). It still doesn't load in the default cause, but it loads properly if I give it an .asBitmap()

@sjudd
Copy link
Collaborator

sjudd commented Oct 18, 2014

Thanks for the report. I tried loading that url using the latest version of Glide and v3.3.1 and that link loads ok for me on both versions. Can you paste your Glide.load line? What version of Android are you running on (there have been some version specific drawable issues in the past)?

@cody-young
Copy link
Author

I'm running android 4.3 at the moment with Glide v3.3.1. Glide line is vanilla as it gets.

Glide.with(this).load("http://i.imgur.com/QpMXaHq.gif").into(imageView);

@sjudd
Copy link
Collaborator

sjudd commented Oct 19, 2014

Ah this is a dupe of #130, the framework used to not call setVisible on Drawables. Other than depending on the latest snapshot, you can also work around this problem by subclassing GlideDrawableImageViewTarget and calling setVisible(true, true) on the returned Drawable in onResourceReady().

@sjudd sjudd closed this as completed Oct 19, 2014
@cody-young
Copy link
Author

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants