haraldk / TwelveMonkeys

TwelveMonkeys ImageIO: Additional plug-ins and extensions for Java's ImageIO
https://haraldk.github.io/TwelveMonkeys/
BSD 3-Clause "New" or "Revised" License
1.89k stars 313 forks source link

JPEG XL (JXL) read and write support #643

Open BuZZ-dEE opened 2 years ago

BuZZ-dEE commented 2 years ago

🚀 Bountysource 🚀

Please implement JPEG XL (JXL) read and write support completely in Java.

https://en.wikipedia.org/wiki/JPEG_XL https://jpeg.org/jpegxl/ https://jpegxl.info/ https://gitlab.com/wg1/jpeg-xl https://github.com/libjxl/libjxl https://caniuse.com/jpegxl

haraldk commented 2 years ago

That would be cool! 😀

Like I said for AVIF support:

I would love to implement that, and it would be a great thing to have!

However, it's a big task and needs either contributions from other volunteers or someone to be able to financially back such development.

Sure, having a C/C++ reference implementation in a suitable license is a big plus, but still a big task.

gotson commented 2 years ago

We don't even have full WEBP support yet 😅

TPS commented 2 years ago

https://gitlab.com/wg1/jpeg-xl

@BuZZ-dEE The canonical repo is here @

https://github.com/libjxl/libjxl

The 1 quoted is now an automatic mirror of this 1.

haraldk commented 2 years ago

@gotson has started a very interesting initiative here: https://github.com/gotson/NightMonkeys, aiming to provide support for more formats using native libraries. 👍🏻

gotson commented 2 years ago

@gotson has started a very interesting initiative here: https://github.com/gotson/NightMonkeys, aiming to provide support for more formats using native libraries. 👍🏻

Thanks a lot Harald for the exposure 😃

I finally had time yesterday to release a first version which is available on Maven Central. Please have a look at the repo, I tried to add instructions on how to use it, and how to install the native libraries too.

For Jpeg XL in particular there is read support for the moment. The encode API doesn't seem stable yet, so i won't work on that anytime soon. Maybe when they get 1.0 out.

And as not to clutter this thread too much, please open issues on the NightMonkeys repo, or ask questions via discussions!