All formats

JPEG XL libraries for Python

Pillow has no built-in JPEG XL support. Two good options:

imagecodecs (BSD-3-Clause) also has jpegxl_encode and jpegxl_decode functions that work on NumPy arrays.