coil-kt / coil

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

support .jxl files #1903

Closed RustoMCSpit closed 1 year ago

RustoMCSpit commented 1 year ago

jpeg xl, the successor to .jpg

colinrtwhite commented 1 year 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 1 year 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