You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw that AVIF support on Android 12+ was added here: #1669
Would it be possible to also have this working on previous Android versions? Additionally with also support for all the other platforms (ios/wasm/desktop)? This could live in a new module like coil-svg
AVIF offers superior compression compared to JPEG and WebP, both in lossy and lossless modes, with support for transparency and high dynamic range (HDR). The only problem is that it isn't widely supported yet.
The text was updated successfully, but these errors were encountered:
That PR doesn't add support for AVIF - it just ensures we can decode an AVIF image using Coil on Android 12+ using the standard Android decoding classes (BitmapFactory/ImageDecoder). The decoders are built into Android 12+ so we can't backport them.
To support pre-Android 12 and multiplatform we'd have to import and wrap a 3rd party AVIF decoder, which would require importing native libraries. It looks like Glide has an integration for Android that already does this, but it would need more work to integrate with all multiplatform targets I believe. It should be possible to write a custom Coil Decoder that wraps the same library like Glide does and add it to your ComponentRegistry.
If there's enough demand we could consider adding a 1st party Coil library to support this, but we'd need to figure out how to support this on multiplatform first. I'm hoping Skia adds support for AVIF as it would simplify the integration, but I'm not sure if there are plans to do that.
I saw that AVIF support on Android 12+ was added here: #1669
Would it be possible to also have this working on previous Android versions? Additionally with also support for all the other platforms (ios/wasm/desktop)? This could live in a new module like
coil-svg
AVIF offers superior compression compared to JPEG and WebP, both in lossy and lossless modes, with support for transparency and high dynamic range (HDR). The only problem is that it isn't widely supported yet.
The text was updated successfully, but these errors were encountered: