Glide 5.0.10
Includes all public changes since v5.0.9 (PR #5721, 2026-07-10).
HttpUrlFetcher: Strip sensitive request headers (Authorization,Proxy-Authorization,Cookie,Cookie2) on cross-origin HTTP redirects by default when handling redirects manually. Can be configured viaGlideBuilder.experimentalSetStripSensitiveHeadersOnCrossOriginRedirects(boolean).
GlideException: Prevent aNullPointerException(rethrown asCallbackException) inGlideException.printStackTrace()when logging a failed load whose cause list containsnull.UriBitmapImageDecoderResourceDecoderMIME & OS guards:- Reject non-image URIs (such as videos and GIFs) in
UriBitmapImageDecoderResourceDecoder.handles()via a positiveimage/*MIME type check so non-image content URIs are not passed toImageDecoder. - Restrict
UriBitmapImageDecoderResourceDecoderto Android 15+ (API 35+) to avoid native container descriptor race conditions on older OS versions.
- Reject non-image URIs (such as videos and GIFs) in
ImageDecoderdecode fallback: CatchDecodeExceptionandIOExceptioninBitmapImageDecoderResourceDecoder.decode()and returnnullsoDecodePathfalls back cleanly toDownsamplerand other registered decoders instead of failing the load.- Active resource release race (#5782): Add
GlideBuilder.experimentalSetEnableActiveResourceReleaseRaceFix(boolean)soEngine.load()skips active resources whose reference count has already dropped to zero, preventingIllegalStateException: Cannot recycle a resource while it is still acquired. RGB_565allocation size (#4490, #4461): AddGlideBuilder.experimentalSetEnableRgb565DownsamplerFix(boolean)to fix allocating twice the required memory when downsamplingRGB_565bitmaps.- In-memory models passed via
load(Object): AddGlideBuilder.experimentalSetUseTypedLoadForInMemoryObjects(boolean)soRequestBuilder.load(Object)delegates to the typedload(Bitmap),load(Drawable), andload(byte[])overloads when the runtime model is one of those types, applying the expected default disk/memory cache strategies (e.g. from ComposeGlideImage).
- Direct file-descriptor
ImageDecodersupport (Android 10+): AddParcelFileDescriptorBitmapImageDecoderResourceDecoderandAssetFileDescriptorBitmapImageDecoderResourceDecoderbehindGlideBuilder.setPrioritizeFileDescriptorOverInputStream(boolean)(used alongsidesetImageDecoderEnabledForBitmaps(true)), prioritizingParcelFileDescriptorandAssetFileDescriptorModelLoaders overInputStreamModelLoaders and decoding directly from file descriptors without buffering streams on the Java heap. Also allowsframe(0)requests on still images to useImageDecoder. - Stream fallback when
ImageDecoderis enabled: AddGlideBuilder.setUseBitmapFactoryForInputStreamsWithImageDecoder(boolean)soInputStreamsources decode incrementally viaBitmapFactory(StreamBitmapDecoder) instead of buffering the entire stream into a contiguousByteBuffer, avoidingOutOfMemoryErroron large images while keepingImageDecoderfor in-place sources (File,ParcelFileDescriptor,AssetFileDescriptor,Uri,ByteBuffer). - EXIF orientation & minimum target size in
ImageDecoder: AddGlideBuilder.setRespectExifOrientationInImageDecoder(boolean)to inspect EXIF orientation ahead of decode and selectALLOCATOR_SOFTWAREwhen rotation is required (avoiding hardware bitmap GPU readbacks), while clampingImageDecoder.setTargetSizedimensions to at least1pxon extreme aspect ratios. - Fast-path URI extension check: Check file extensions from URI path segments in
UriBitmapImageDecoderResourceDecoder.handles()before falling back toContentResolver.getType(uri), avoiding synchronous Binder IPC for standard image URIs. - Bypass transformations for
HARDWAREbitmaps: AddDownsampler.BYPASS_TRANSFORMATIONS_FOR_HARDWARE_BITMAPS(effective whenDownsampler.ALLOW_HARDWARE_CONFIGis enabled) so display-only layouts where the targetImageViewhandles scaling/cropping can skip software-canvas bitmap transformations when the decoded resource isBitmap.Config.HARDWARE. - Bypass resource disk cache for
HARDWAREbitmaps: AddGlideBuilder.setBypassResourceDiskCacheForHardwareBitmaps(boolean)to skip compressingBitmap.Config.HARDWAREresources into the resource disk cache, avoidingRenderThreadGPU readbacks and transient software bitmap copies on decode threads. - Disk cache path-name memoization disabled by default: Disable eager
Filepath-name memoization by default inDiskLruCacheWrapper/DiskLruCacheto reduce retained heap memory for large disk caches. - Background memory trimming on
TRIM_MEMORY_UI_HIDDEN: AddGlideBuilder.experimentalSetEnableTrimMemoryOnUiHidden(boolean)sosetMemoryCategoryInBackground(MemoryCategory)also applies when the app transitions toComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN. - Unlimited source executor configuration: Add
GlideBuilder.setSourceUnlimitedExecutor(GlideExecutor)andGlideExecutor.newUnlimitedSourceBuilder()to allow customizingUncaughtThrowableStrategyand thread pool parameters for unlimited source loads.
- Compose (
1.0.0-beta11):- Add
GlideBuilder.experimentalSetClearGlidePainterOnStop(boolean)soGlidePainterclears active requests and releasesBitmap/Drawablereferences when the hostLifecycleOwnermoves belowSTARTED(ON_STOP), automatically restarting onON_START. - Update required Java/JVM target version for
:integration:composeto Java 11.
- Add
- KTX (
1.0.0-beta11):- Bump version to
1.0.0-beta11alongside:integration:compose.
- Bump version to
- Cronet:
- Add opt-in
ChromiumUrlLoader.Options.Builder#setGuardActiveJobEviction(boolean)to verify job identity before evicting an active URL entry on asynchronous cancellation/completion callbacks. - Downgrade expected Cronet network request failure logs in
ChromiumRequestSerializerfromERRORtoWARN.
- Add opt-in
- Concurrent (
futures):- Replace restricted
CallbackToFutureAdapter/AbstractResolvableFutureusage inGlideFutureswith a customAbstractFutureimplementation, propagate synchronoussubmit()exceptions through the returnedListenableFuture, and drop the unusedandroidx.concurrent:concurrent-futuresdependency.
- Replace restricted
DiskLruCache:- Add single-value convenience overloads
DiskLruCache.open(directory, appVersion, maxSize)andValue.getFile(), and remove legacy multi-value entry complexity.
- Add single-value convenience overloads
- Narrow internal
Engine,ActiveResources,Jobs,EngineJob, andEngineResourcetracking keys fromKeytoEngineKey, standardize engine field ordering, remove unreachable pre-API 23 branches (minSdkVersionis 23), removeUtil.setSdkVersionInt, fix Javadoc compilation warnings, clean up redundant@SuppressWarnings, and annotate builder/registry mutators with@CanIgnoreReturnValue. - Configure Renovate
automergeTypetoprandrebaseWhentoconflicted. - Dependency updates: Kotlin
2.4.20, KSP2.3.14, Compose1.12.1,androidx.appcompat1.8.0,androidx.fragment1.9.1,androidx.lifecycle2.11.0,androidx.annotation1.11.0,dagger2.60.1,androidx.test:core1.7.0,androidx.junit1.3.0,androidx.espresso3.7.0,androidx.benchmark1.5.0-rc01, andcom.google.truth1.4.5.
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.9...v5.0.10
v.5.0.9
- Bump ktx and compose versions to 1.0.0-beta10, 5.0.9 version, POM dev… by @falhassen in https://github.com/bumptech/glide/pull/5721
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.8...v.5.0.9
Glide v5.0.9
Removed extra . from version name.
Glide v5.0.8
N/A
N/A
- Upgrade Glide build system to Gradle 9.4.1, AGP 8.8.0, and Kotlin/KSP 2.0.20, resolving various build and test compatibility issues.
- Bump Glide
compileSdkVersionto 37 and Robolectric to 4.16.1. - Bump Glide
minSdkVersionto 23 to match AndroidX requirements. - Restore deterministic module sorting in Glide annotation processors to improve build reproducibility (Fixes #5657).
- Fix Javadoc style issue in
setMemoryCategoryInBackgroundthat was breaking Renovate tooling (Fixes #5680). - Fix PMD violations in
Glide.javaandGlideExecutor.java(AccessorMethodGeneration and RedundantFieldInitializer). - Fix fragile use of
TypeMirror#toStringin annotation compiler. - Update tests to run on API 24.
It should be safer to use Android's ImageDecoder (introduced in Android 9.0 Pie / API 28) with Glide on Android Q (API 29) and above. Please consider trying it out, as ImageDecoder is the now preferred mechanism for decoding images in Android and may yield performance and memory usage benefits.
Several critical issues have been resolved in this release:
- OOM/ANR Fixes: Fixed potential OutOfMemory (OOM) errors and Application Not Responding (ANR) issues when using
ImageDecoderwith certain input streams or whenArrayPoolbuffer allocation was enabled. - Unbounded Allocations: Fixed unbounded memory allocations when decoding bitmaps from
InputStreamsource types. - Buffer Pooling: Added support for allocating
ImageDecoderByteBuffers via Glide'sArrayPoolto avoid double-allocation overhead (enabled viasetUseArrayPoolForImageDecoderByteBufferAllocation). - Direct Uri Decoding: Direct decoding of Bitmaps from Uris using
ImageDecoderis now supported. To enableImageDecoderin your application, configure the options in yourAppGlideModuleaccordingly:
@GlideModule
public class MyAppGlideModule extends AppGlideModule {
@Override
public void applyOptions(@NonNull Context context, @NonNull GlideBuilder builder) {
// Enable ImageDecoder for Bitmaps (Android Q+)
builder.setImageDecoderEnabledForBitmaps(true);
// Enable ImageDecoder for Uris (Android Q+)
builder.setUriImageDecoderEnabled(true);
// Enable optimized buffer pooling for ImageDecoder
builder.setUseArrayPoolForImageDecoderByteBufferAllocation(true);
// Use heap buffers for ImageDecoder with InputStreams to avoid native memory overhead
builder.setUseHeapBufferForImageDecoderWithInputStream(true);
}
}
- Direct Uri Decoding: Implement
UriBitmapImageDecoderResourceDecoderto allow direct decoding of Bitmaps from Uris using Android'sImageDecoder. - Direct Memory Decoding: Support direct memory decoding for byte buffers and arrays without stream wrapping.
- HEIF/HEIC Detection: Add HEIF/HEIC format detection to
DefaultImageHeaderParser. - Disk Cache Path Memoization: Add a setting to disable disk cache path name memoization in
DiskLruCacheto reduce retained memory. - ImageDecoder Buffer Pooling: Add
ImageDecoderByteBuffer allocation viaArrayPoolto avoid double-allocation overhead (flag-guarded byUseArrayPoolForImageDecoderByteBufferAllocation). - Fix Unbounded Allocations: Fix unbounded bitmap allocations in Glide
ImageDecoderwhen usingInputStream(flag-guarded byUseHeapBufferForImageDecoderWithInputStream). - ImageDecoder OOM/ANR Fix: Reject unknown stream formats in
InputStreamBitmapImageDecoderResourceDecoder.handlesto prevent OOMs/ANRs whenArrayPoolis enabled. - Resource Leak Fix: Fix resource leak in
ByteBufferUtil.fromStreamby ensuring buffers fromArrayPoolare returned on exception. - Picker URI Support: Update
isAndroidPickerUrito support new picker URI variations (likepicker_get_content/andpicker_transcoded/). - Memory Tracking Logs: Add "GlideMemoryTracking" debug tag to trace memory overhead from scaling and cache hits.
- Experimental Downsample Strategy: Add experimental option
setCenterInsideAsDefaultDownsampleStrategytoGlideBuilderto allow usingCENTER_INSIDEas the default downsampling strategy.
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.7...v5.0.8
Glide v5.0.7
N/A
N/A
- Add missing version bump
N/A
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.6...v5.0.7
Glide v5.0.6
- Version bump to 1.0.0-beta09
- Version bump to 1.0.0-beta09
N/A
- Set the background memory category only when trim level is higher than TRIM_MEMORY_UI_HIDDEN. See https://github.com/bumptech/glide/pull/5669
- Stop appending requireOriginal to URIs loaded by Glide on Android R+. See https://github.com/bumptech/glide/pull/5668
- Converting a second set of Groovy Gradle files to Kotlin DSL. See https://github.com/bumptech/glide/pull/5639
- Migrate from Robolectric's Util.readBytes to Guava ByteStreams. See https://github.com/bumptech/glide/pull/5636
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.5...v5.0.6
Glide v5.0.5
- Version bump to 1.0.0-beta08
- Version bump to 1.0.0-beta08
N/A
- Restores GlideUrl fix for urls with IPV6 addresses fix that was accidentally reverted in 5.0.4. See https://github.com/bumptech/glide/pull/5444 for details
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.4...v5.0.5
Glide v5.0.4
- Version bump to 1.0.0-beta07
- Version bump to 1.0.0-beta07
N/A
- Fixes compiler module missing in published artifacts. See #5591.
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.3...v5.0.4
Glide v5.0.3
- Version bump to 1.0.0-beta06
- Version bump to 1.0.0-beta06
N/A
- Fixes missing gif_decoder modules. See #5580.
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.2...v5.0.3
Glide v5.0.2
- Version bump to 1.0.0-beta05
- Version bump to 1.0.0-beta05
N/A
- Fixes missing gifdecoder and disklrucache modules. See #5580.
Full Changelog: https://github.com/bumptech/glide/compare/v5.0.1...v5.0.2