-
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
The Gif load problem, can't display well #1059
Comments
I think what you see is #836, the fix is done for v4, but needs to be copied into v3, this is tracked in #970. Please confirm that the "screenshot" in #836 is similar to your "flash". There's also a possibility of using external libraries to display stuff, see #805. Tip: don't use Tip: use |
Thank you very much for you answer, I will check soon. so I use Depending on what you say, I should use and also think for you next tip~ |
Yes, you see it correctly, it's weird for opening a stream from APK to be slow, I have no idea about that. You can try putting the image in raw or assets, but I don't think it'll make a difference. Wait... by NONE I mean to explicitly call |
@TWiStErRob
and the Glide code change to
I tried the first Gif , it seems become normal (The upper image is loaded by android-gif-drawable and the under image is loaded by Glide) But when I tried second Gif, it look like what I said before “flash or glitter in some frame” It seems that there are also some bugs in v4 :( |
Can you try with |
@TWiStErRob
It's the local image so I use |
Hmm, it looks like sometimes only half of the frame is decoded, maybe the Bitmap is displayed while it is still decoding, which would be really weird. |
…pose background Fixes bumptech#1059
Fixed in #1093, should available as 3.8.0-SNAPSHOT. |
Thank you very much for you help! ! ! |
Hi, I load a gif image from local
The gif:
and other gifs:
I use
int source = R.drawble.xxx;
Glide.with(this).load(source).asGif().diskCacheStrategy(DiskCacheStrategy.SOURCE).into(imageView);
to load those Gifs
But I find the gif1 and gif2 can't display very well, though the gif can display on the phone, but it flick(flash , twinkle, glint sorry I'm not a English speaker, I don't know how to express it well, all in all the Gif1 and Gif2 in glide are not playing well, It seems that the last frame doesn't disappear)
However the 3rd Gif is normal.
I'm confused about the question, I try many gifs and find it seems that when the gif's background is transparent it will appear(not for all, just some of them)
I use Glide 3.6.1
and also find this problem in 3.7.0
But when I choose another gif lib like:
koral--/android-gif-drawable
it display all gifs very well.
So I help to solve this problem.
Thank you very much!
The text was updated successfully, but these errors were encountered: