coil-kt / coil

Image loading for Android and Compose Multiplatform.
https://coil-kt.github.io/coil/
Apache License 2.0
10.51k stars 643 forks source link

support .jxl files #1903

Closed RustoMCSpit closed 8 months ago

RustoMCSpit commented 9 months ago

jpeg xl, the successor to .jpg

colinrtwhite commented 8 months ago

Thanks for the request. I think this is a good candidate for an external library. I think your best bet would be to implement the Decoder interface and wrap the libjxl native decoder library since Android doesn't have native support. JPEG XL seems to be a bit of a niche format (Chrome deprecated and removed support last year) and adding first party support takes time to build and maintain.

RustoMCSpit commented 8 months ago

JPEG XL seems to be a bit of a niche format

most formats are only niche cause apps dont support them, jxl is a superior version of jpg and it's sad it has such little implementation