-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Bypass BitmapPool for gif images #32
Comments
This is definitely possible, thanks for pointing this out. If you're feeling particularly ambitious you can take a look in the Downsampler where we read the image header: https://github.com/bumptech/glide/blob/master/library/src/com/bumptech/glide/resize/load/Downsampler.java#L121 |
Done. Please checkout pull request #36 and tell me if you think it is correct. It seems to work for us. The errors are gone :) |
Merged the pull request, this should be fixed. Thanks! |
We load facebook avatars in one of our lists and it seems that some of them are GIFs.
We got some weird errors in our logs:
it seems that on Android, you cannot recycle a bitmap when it comes to GIFs. See the discussion here:
https://groups.google.com/forum/#!msg/android-developers/Mp0MFVFi1Fo/e8ZQ9FGdWdEJ
Can we have Glide bypass the pool when dealing with GIFs?
The text was updated successfully, but these errors were encountered: