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 support #59

Closed
o-antsiferov opened this issue Jan 29, 2014 · 3 comments
Closed

Gif support #59

o-antsiferov opened this issue Jan 29, 2014 · 3 comments
Labels

Comments

@o-antsiferov
Copy link

I'm using a custom GifDrawable wich incorporates with GifDecoder which knows how to get next frame/delay and works with stream of bytes to display animated gifs. So I would like to integrate your library to my project to support gif loading and animation. Could you please point me on how I can achive this?

@sjudd
Copy link
Collaborator

sjudd commented Feb 4, 2014

This is a bit complicated. I don't think Glide provides great out of the box support for images that can't be displayed as bitmaps right now. I have an idea of how Glide can be modified to be more flexible, but I haven't yet had the time to implement it.

In the meantime your best bet is probably to use Volley to download and save the bytes of the gif to disk (outside of Glide's cache), and then provide the filepath (or a FileInputStream) to the gifdecoder.
You could then also pass that filepath to Glide if you wanted to show a static thumbnail of the gif.

I know this isn't great, and if you're interested in trying to modify Glide to better support this I'd be happy to have any help you might be willing to provide.

@sjudd
Copy link
Collaborator

sjudd commented Jun 14, 2014

This is fixed in the 3.0a version here: ea01ddd.

@sjudd
Copy link
Collaborator

sjudd commented Jun 28, 2014

Since this is fixed in the 3.0a branch and not practical to cherry pick, I'm going to close this, thanks for the request!

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