Skip to content
An image loading and caching library for Android focused on smooth scrolling
Java Shell
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add `pull_request` to list of triggers Jan 16, 2020
.idea Include default inspection profile for AS/Intellij. Dec 30, 2017
annotation Add a parameter to force Glide's annotation processor to use support Nov 4, 2019
glide Use sourceSets instead of JavaCompileProvider to generate javadoc. Sep 27, 2019
gradle/wrapper Update Gradle to 4.10.1 Mar 5, 2019
instrumentation Downsampler preserves original size for Target.SIZE_ORIGINAL for all … Sep 17, 2019
integration Migrate static imports of org.mockito.Matchers to org.mockito.Argumen… Jan 31, 2020
library Hardcode disallowed device models for hardware Bitmaps from b/147430447 Feb 3, 2020
mocks Move MockGlideExecutor into public 'mocks' package Sep 3, 2019
samples Fix gallery sample app on Q. Nov 14, 2019
scripts Update release checks script to work better with Copybara workflows. Sep 27, 2019
static Add logo. Sep 5, 2014
testutil Reformat all files excluding third_party. May 24, 2019
third_party Moving away from @config(manifest = ...) Jun 13, 2019
.gitignore Include default inspection profile for AS/Intellij. Dec 30, 2017
.gitmodules Move exif-orientation-examples out of submodule to ease code migrations. May 24, 2019
.travis.yml Add Q ModelLoader to load unredacted data when possible to avoid HEIC… Oct 23, 2019 Automated g4 rollback of changelist 116167265. May 17, 2016 Introduce issue templates "the right way". Mar 18, 2016
LICENSE Initial not compiling gif encoder Oct 3, 2014 Introduce issue templates "the right way". Mar 18, 2016 Bump version to 4.11.0 Jan 8, 2020
build.gradle Disable BuildConfig generation Jun 17, 2019
checkstyle.xml Migrate org.mockito.Matchers#any* to org.mockito.ArgumentMatchers Jul 9, 2019
checkstyle_suppressions.xml Add integration library for use with Guava's ListenableFuture class. Aug 30, 2019
debug.keystore Add a debug.keystore and copy it to its expected location in travis. Oct 31, 2017
gcloud-bumptech.json.enc Add scripts to queue firebase emulators in travis instrumentation test. Oct 22, 2017
gcloud-sjudd.json.enc Add scripts to queue firebase emulators in travis instrumentation test. Oct 22, 2017 Bump version to 4.12.0-SNAPSHOT Jan 8, 2020
gradlew update gradle to 4.1 (#2286) Aug 24, 2017
gradlew.bat Project import generated by Copybara. May 24, 2019
settings.gradle Open source a Cronet integration for Glide. Jan 13, 2020


Maven Central Build Status | View Glide's documentation | 简体中文文档 | Report an issue with Glide

Glide is a fast and efficient open source media management and image loading framework for Android that wraps media decoding, memory and disk caching, and resource pooling into a simple and easy to use interface.

Glide supports fetching, decoding, and displaying video stills, images, and animated GIFs. Glide includes a flexible API that allows developers to plug in to almost any network stack. By default Glide uses a custom HttpUrlConnection based stack, but also includes utility libraries plug in to Google's Volley project or Square's OkHttp library instead.

Glide's primary focus is on making scrolling any kind of a list of images as smooth and fast as possible, but Glide is also effective for almost any case where you need to fetch, resize, and display a remote image.


For detailed instructions and requirements, see Glide's download and setup docs page.

You can download a jar from GitHub's releases page.

Or use Gradle:

repositories {

dependencies {
  implementation 'com.github.bumptech.glide:glide:4.11.0'
  annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

Or Maven:


For info on using the bleeding edge, see the Snapshots docs page.


Depending on your ProGuard (DexGuard) config and usage, you may need to include the following lines in your proguard.cfg (see the Download and Setup docs page for more details):

-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
  **[] $VALUES;
  public *;

# for DexGuard only
-keepresourcexmlelements manifest/application/meta-data@value=GlideModule

How do I use Glide?

Check out the documentation for pages on a variety of topics, and see the javadocs.

For Glide v3, see the wiki.

Simple use cases will look something like this:

// For a simple view:
@Override public void onCreate(Bundle savedInstanceState) {
  ImageView imageView = (ImageView) findViewById(;


// For a simple image list:
@Override public View getView(int position, View recycled, ViewGroup container) {
  final ImageView myImageView;
  if (recycled == null) {
    myImageView = (ImageView) inflater.inflate(R.layout.my_image_view, container, false);
  } else {
    myImageView = (ImageView) recycled;

  String url = myUrls.get(position);


  return myImageView;


Version 4 is now released and stable. Updates are released periodically with new features and bug fixes.

Comments/bugs/questions/pull requests are always welcome! Please read on how to report issues.


  • Minimum Android SDK: Glide v4 requires a minimum API level of 14.
  • Compile Android SDK: Glide v4 requires you to compile against API 26 or later.

If you need to support older versions of Android, consider staying on Glide v3, which works on API 10, but is not actively maintained.

  • OkHttp 3.x: There is an optional dependency available called okhttp3-integration, see the docs page.
  • Volley: There is an optional dependency available called volley-integration, see the docs page.
  • Round Pictures: CircleImageView/CircularImageView/RoundedImageView are known to have issues with TransitionDrawable (.crossFade() with .thumbnail() or .placeholder()) and animated GIFs, use a BitmapTransformation (.circleCrop() will be available in v4) or .dontAnimate() to fix the issue.
  • Huge Images (maps, comic strips): Glide can load huge images by downsampling them, but does not support zooming and panning ImageViews as they require special resource optimizations (such as tiling) to work without OutOfMemoryErrors.


Building Glide with gradle is fairly straight forward:

git clone
cd glide
./gradlew jar

Note: Make sure your Android SDK has the Android Support Repository installed, and that your $ANDROID_HOME environment variable is pointing at the SDK or add a file in the root project with a sdk.dir=... line.


Follow the steps in the Build section to set up the project and then:

./gradlew :samples:flickr:run
./gradlew :samples:giphy:run
./gradlew :samples:svg:run
./gradlew :samples:contacturi:run

You may also find precompiled APKs on the releases page.


Follow the steps in the Build section to setup the project and then edit the files however you wish. Android Studio cleanly imports both Glide's source and tests and is the recommended way to work with Glide.

To open the project in Android Studio:

  1. Go to File menu or the Welcome Screen
  2. Click on Open...
  3. Navigate to Glide's root directory.
  4. Select setting.gradle

For more details, see the Contributing docs page.

Getting Help

To report a specific problem or feature request, open a new issue on Github. For questions, suggestions, or anything else, email Glide's discussion group, or join our IRC channel:


Before submitting pull requests, contributors must sign Google's individual contributor license agreement.



Sam Judd - @sjudd on GitHub, @samajudd on Twitter


BSD, part MIT and Apache 2.0. See the LICENSE file for details.


This is not an official Google product.

You can’t perform that action at this time.