setImageDecoderEnabledForBitmaps

open fun setImageDecoderEnabledForBitmaps(isEnabled: Boolean): GlideBuilder

Set to true to make Glide use android.graphics.ImageDecoder when decoding Bitmaps on Android P and higher.

Calls to this method on versions of Android less than Q are ignored. Although ImageDecoder was added in Android O a bug prevents it from scaling images with exif orientations until Q. See b/136096254.

Specifically android.graphics.ImageDecoder will be used in place of and android.graphics.BitmapFactory to decode Bitmaps. GIFs, resources, and all other types of s are not affected by this flag.

This flag is experimental and may be removed without deprecation in a future version.

When this flag is enabled, Bitmap's will not be re-used when decoding images, though they may still be used as part of com.bumptech.glide.load.Transformations because does not support Bitmap re-use.

When this flag is enabled FIX_BITMAP_SIZE_TO_REQUESTED_DIMENSIONS is ignored. All other com.bumptech.glide.load.resource.bitmap.Downsampler flags are obeyed, although there may be subtle behavior differences because many options are subject to the whims of android.graphics.BitmapFactory and android.graphics.ImageDecoder which may not agree.