All Versions
Latest Version
Avg Release Cycle
25 days
Latest Release
37 days ago

Changelog History
Page 4

  • v0.9.5 Changes

    February 06, 2020
    • ๐Ÿ›  Fix: Ensure a view is attached before checking if it is hardware accelerated. This fixes a case where requesting a hardware bitmap could miss the memory cache.

    • โšก๏ธ Update AndroidX dependencies:
      • androidx.core:core-ktx -> 1.2.0
  • v0.9.4 Changes

    February 03, 2020
    • ๐Ÿ›  Fix: Respect aspect ratio when downsampling in ImageDecoderDecoder. Thanks @zhanghai.

    • Previously bitmaps would be returned from the memory cache as long as their config was greater than or equal to the config specified in the request. For example, if you requested an ARGB_8888 bitmap, it would be possible to have a RGBA_F16 bitmap returned to you from the memory cache. Now, the cached config and the requested config must be equal.
    • ๐Ÿ‘‰ Make scale and durationMillis public in CrossfadeDrawable and CrossfadeTransition.
  • v0.9.3 Changes

    February 01, 2020
    • ๐Ÿ›  Fix: Translate child drawable inside ScaleDrawable to ensure it is centered.
    • ๐Ÿ›  Fix: Fix case where GIFs and SVGs would not fill bounds completely.

    • Defer calling HttpUrl.get() to background thread.
    • ๐Ÿ‘Œ Improve BitmapFactory null bitmap error message.
    • โž• Add 3 devices to hardware bitmap blacklist. (#264)

    • โšก๏ธ Update AndroidX dependencies:
      • androidx.lifecycle:lifecycle-common-java8 -> 2.2.0
  • v0.9.2 Changes

    January 19, 2020
    • ๐Ÿ›  Fix: Fix decoding GIFs on pre-API 19. Thanks @mario.
    • ๐Ÿ›  Fix: Fix rasterized vector drawables not being marked as sampled.
    • ๐Ÿ›  Fix: Throw exception if Movie dimensions are <= 0.
    • ๐Ÿ›  Fix: Fix CrossfadeTransition not being resumed for a memory cache event.
    • ๐Ÿ›  Fix: Prevent returning hardware bitmaps to all target methods if disallowed.
    • ๐Ÿ›  Fix: Fix MovieDrawable not positioning itself in the center of its bounds.

    • โœ‚ Remove automatic scaling from CrossfadeDrawable.
    • ๐Ÿ‘‰ Make BitmapPool.trimMemory public.
    • Wrap AnimatedImageDrawable in a ScaleDrawable to ensure it fills its bounds.
    • โž• Add @JvmOverloads to RequestBuilder.setParameter.
    • Set an SVG's view box to its size if the view box is not set.
    • Pass state and level changes to CrossfadeDrawable children.

    • โšก๏ธ Update OkHttp to 3.12.8.
  • v0.9.1 Changes

    December 30, 2019

    ๐Ÿ‘€ See

  • v0.9.0 Changes

    December 30, 2019
    • ๐Ÿ’ฅ Breaking: Transformation.transform now includes a Size parameter. This is to support transformations that change the size of the output Bitmap based on the size of the Target. Requests with transformations are now also exempt from image sampling.
    • ๐Ÿ’ฅ Breaking: Transformations are now applied to any type of Drawable. Before, Transformations would be skipped if the input Drawable was not a BitmapDrawable. Now, Drawables are rendered to a Bitmap before applying the Transformations.
    • ๐Ÿ’ฅ Breaking: Passing null data to ImageLoader.load is now treated as an error and calls Target.onError and Request.Listener.onError with a NullRequestDataException. This change was made to support setting a fallback drawable if data is null. Previously the request was silently ignored.
    • ๐Ÿ’ฅ Breaking: RequestDisposable.isDisposed is now a val.

    • ๐Ÿ†• New: Support for custom transitions. See here for more info. Transitions are marked as experimental as the API is incubating.
    • ๐Ÿ†• New: Add RequestDisposable.await to support suspending while a LoadRequest is in progress.
    • ๐Ÿ†• New: Support setting a fallback drawable when request data is null.
    • ๐Ÿ†• New: Add Precision. This makes the size of the output Drawable exact while enabling scaling optimizations for targets that support scaling (e.g. ImageViewTarget). See its documentation for more information.
    • ๐Ÿ†• New: Add RequestBuilder.aliasKeys to support matching multiple cache keys.

    • ๐Ÿ›  Fix: Make RequestDisposable thread safe.
    • ๐Ÿ›  Fix: RoundedCornersTransformation now crops to the size of the target then rounds the corners.
    • ๐Ÿ›  Fix: CircleCropTransformation now crops from the center.
    • ๐Ÿ›  Fix: Add several devices to the hardware bitmap blacklist.
    • ๐Ÿ›  Fix: Preserve aspect ratio when converting a Drawable to a Bitmap.
    • ๐Ÿ›  Fix: Fix possible memory cache miss with Scale.FIT.
    • ๐Ÿ›  Fix: Ensure Parameters iteration order is deterministic.
    • ๐Ÿ›  Fix: Defensive copy when creating Parameters and ComponentRegistry.
    • ๐Ÿ›  Fix: Ensure RealBitmapPool's maxSize >= 0.
    • ๐Ÿ›  Fix: Show the start drawable if CrossfadeDrawable is not animating or done.
    • ๐Ÿ›  Fix: Adjust CrossfadeDrawable to account for children with undefined intrinsic size.
    • ๐Ÿ›  Fix: Fix MovieDrawable not scaling properly.

    • โšก๏ธ Update Kotlin to 1.3.61.
    • โšก๏ธ Update Kotlin Coroutines to 1.3.3.
    • โšก๏ธ Update Okio to 2.4.3.
    • โšก๏ธ Update AndroidX dependencies:
      • androidx.exifinterface:exifinterface -> 1.1.0
  • v0.8.0 Changes

    October 22, 2019
    • ๐Ÿ’ฅ Breaking: SvgDrawable has been removed. Instead, SVGs are now prerendered to BitmapDrawables by SvgDecoder. This makes SVGs significantly less expensive to render on the main thread. Also SvgDecoder now requires a Context in its constructor.
    • ๐Ÿ’ฅ Breaking: SparseIntArraySet extension functions have moved to the coil.extension package.

    • ๐Ÿ†• New: Support setting per-request network headers. See here for more info.
    • ๐Ÿ†• New: Add new Parameters API to support passing custom data through the image pipeline.
    • ๐Ÿ†• New: Support individual corner radii in RoundedCornersTransformation. Thanks @khatv911.
    • ๐Ÿ†• New: Add ImageView.clear() to support proactively freeing resources.
    • ๐Ÿ†• New: Support loading resources from other packages.
    • ๐Ÿ†• New: Add subtractPadding attribute to ViewSizeResolver to enable/disable subtracting a view's padding when measuring.
    • ๐Ÿ†• New: Improve HttpUrlFetcher MIME type detection.
    • ๐Ÿ†• New: Add Animatable2Compat support to MovieDrawable and CrossfadeDrawable.
    • ๐Ÿ†• New: Add RequestBuilder<*>.repeatCount to set the repeat count for a GIF.
    • ๐Ÿ†• New: Add BitmapPool creation to the public API.
    • ๐Ÿ†• New: Annotate Request.Listener methods with @MainThread.

    • ๐Ÿ›  Fix: Make CoilContentProvider visible for testing.
    • ๐Ÿ›  Fix: Include night mode in the resource cache key.
    • ๐Ÿ›  Fix: Work around ImageDecoder native crash by temporarily writing the source to disk.
    • ๐Ÿ›  Fix: Correctly handle contact display photo uris.
    • ๐Ÿ›  Fix: Pass tint to CrossfadeDrawable's children.
    • ๐Ÿ›  Fix: Fix several instances of not closing sources.
    • ๐Ÿ›  Fix: Add a blacklist of devices with broken/incomplete hardware bitmap implementations.

    • Compile against SDK 29.
    • โšก๏ธ Update Kotlin Coroutines to 1.3.2.
    • โšก๏ธ Update OkHttp to 3.12.6.
    • โšก๏ธ Update Okio to 2.4.1.
    • ๐Ÿ”„ Change appcompat-resources from compileOnly to implementation for coil-base.
  • v0.7.0 Changes

    September 08, 2019
    • ๐Ÿ’ฅ Breaking: ImageLoaderBuilder.okHttpClient(OkHttpClient.Builder.() -> Unit) is now ImageLoaderBuilder.okHttpClient(() -> OkHttpClient). The initializer is also now called lazily on a background thread. If you set a custom OkHttpClient you must set OkHttpClient.cache to enable disk caching. If you don't set a custom OkHttpClient, Coil will create the default OkHttpClient which has disk caching enabled. The default Coil cache can be created using CoilUtils.createDefaultCache(context). e.g.:
    val imageLoader = ImageLoader(context) {
        okHttpClient {
    • ๐Ÿ’ฅ Breaking: Fetcher.key no longer has a default implementation.
    • ๐Ÿ’ฅ Breaking: Previously, only the first applicable Mapper would be called. Now, all applicable Mappers will be called. No API changes.
    • ๐Ÿ’ฅ Breaking: Minor named parameter renaming: url -> uri, factory -> initializer.

    • ๐Ÿ†• New: coil-svg artifact, which has an SvgDecoder that supports automatically decoding SVGs. Powered by AndroidSVG. Thanks @rharter.
    • ๐Ÿ†• New: load(String) and get(String) now accept any of the supported Uri schemes. e.g. You can now do imageView.load("file:///path/to/file.jpg").
    • ๐Ÿ†• New: Refactor ImageLoader to use Call.Factory instead of OkHttpClient. This allows lazy initialization of the networking resources using ImageLoaderBuilder.okHttpClient { OkHttpClient() }. Thanks @ZacSweers.
    • ๐Ÿ†• New: RequestBuilder.decoder to explicitly set the decoder for a request.
    • ๐Ÿ†• New: ImageLoaderBuilder.allowHardware to enable/disable hardware bitmaps by default for an ImageLoader.
    • ๐Ÿ†• New: Support software rendering in ImageDecoderDecoder.

    • ๐Ÿ›  Fix: Multiple bugs with loading vector drawables.
    • ๐Ÿ›  Fix: Support WRAP_CONTENT View dimensions.
    • ๐Ÿ›  Fix: Support parsing EXIF data longer than 8192 bytes.
    • ๐Ÿ›  Fix: Don't stretch drawables with different aspect ratios when crossfading.
    • ๐Ÿ›  Fix: Guard against network observer failing to register due to exception.
    • ๐Ÿ›  Fix: Fix divide by zero error in MovieDrawable. Thanks @R12rus.
    • ๐Ÿ›  Fix: Support nested Android asset files. Thanks @JaCzekanski.
    • ๐Ÿ›  Fix: Guard against running out of file descriptors on Android O and O_MR1.
    • ๐Ÿ›  Fix: Don't crash when disabling memory cache. Thanks @hansenji.
    • ๐Ÿ›  Fix: Ensure Target.cancel is always called from the main thread.

    • โšก๏ธ Update Kotlin to 1.3.50.
    • โšก๏ธ Update Kotlin Coroutines to 1.3.0.
    • โšก๏ธ Update OkHttp to 3.12.4.
    • โšก๏ธ Update Okio to 2.4.0.
    • โšก๏ธ Update AndroidX dependencies to the latest stable versions:
      • androidx.appcompat:appcompat -> 1.1.0
      • androidx.core:core-ktx -> 1.1.0
      • androidx.lifecycle:lifecycle-common-java8 -> 2.1.0
    • Replace appcompat with appcompat-resources as an optional compileOnly dependency. appcompat-resources is a much smaller artifact.
  • v0.6.1 Changes

    August 16, 2019
    • ๐Ÿ†• New: Add transformations(List<Transformation>) to RequestBuilder.
    • ๐Ÿ›  Fix: Add the last modified date to the cache key for file uris.
    • ๐Ÿ›  Fix: Ensure View dimensions are evaluated to at least 1px.
    • ๐Ÿ›  Fix: Clear MovieDrawable's canvas between frames.
    • ๐Ÿ›  Fix: Open assets correctly.
  • v0.6.0 Changes

    August 12, 2019

    ๐Ÿ‘€ See