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 get GifDecoder from GifDrawable? #2397
Comments
In short, you can't. Out of curiosity, what are you using the GifDecoder for? |
I want to get the end of playing gif, |
What do you mean by gt the end of playing gif? GifDrawable does have an API, but beyond that nothing is exposed by default. If you have a use case that is generally useful, please feel free to create a pull request to expand GifDrawable. If not, you could write your own ResourceDecoder that returns an extension of GifDrawable that exposes whatever you need. |
got it! Thanks |
I realise this issue is closed, but I too have this use case. I want to set the number of loops of a GIF depending on the length of time the GIF runs for. e.g. If it's a long GIF play once. If it's short play twice. |
I want to do something like @ScreamingHawk does, and I had the same problem.
Is any way to load a gif file as MyGifDrawable ? |
@niuyunedu You'd also need to write a |
@sjudd Thank you! |
hello ,
my glide version now is 4.1.1,
before ,it is 3.8.0.
I want to know how to get GifDecoder for GifDdrawable in 4.1.1?
in 3.8.0 it is like this:
GifDecoder decoder = gifDrawable.getDecoder();
but now cannot find getDecoder method.
The text was updated successfully, but these errors were encountered: