This project includes code to decode and play animated GIFs on Android.

Significant files:

GifFileDecoder.java - decoder, converts gif files to in-memory images. Implements streaming: only one or two frames are kept in memory, so long videos can be played without memory concerns. Code is implemented in Java, but appears to work about as fast as WebView.

GifImageView.java - custom ImageView running decoder from a thread.

You have permission to use this code in any of your projects.

Project Activity

See All Activity >

License

Apache License V2.0

Follow giffiledecoder

giffiledecoder Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of giffiledecoder!

Additional Project Details

Registered

2015-03-20