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

How to disable gif feature? #1411

Closed
cantalou opened this issue Aug 13, 2016 · 3 comments
Closed

How to disable gif feature? #1411

cantalou opened this issue Aug 13, 2016 · 3 comments
Labels

Comments

@cantalou
Copy link

cantalou commented Aug 13, 2016

Glide Version: 3.8.0

Integration libraries: no

Device/Android Version: Android 2.3

Issue details / Repro steps / Use case background:
My app often encounters oom on version 2.3. I had add the plugin leakcanary and no activty was leaked. After dumping the heap , I found some big object about gif. so I want to disable gif feature and make more test?
image

@TWiStErRob
Copy link
Collaborator

TWiStErRob commented Aug 13, 2016

load(...).asBitmap()

You're probably either loading too big GIFs, or not clearing them often enough (see RecyclerView.Adapter.onViewRecycled and Glide.clear and http://stackoverflow.com/a/32887693/253468)

@hamberluo
Copy link

load as bitmap does not have a transition animation between placeholder and bitmap

@TWiStErRob
Copy link
Collaborator

TWiStErRob commented Oct 25, 2016

.crossFade() has been added in #1096, but not released yet; you can use the 3.8.0 snapshot or one of the verbose workarounds.

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