cgohlke / imagecodecs

Image transformation, compression, and decompression codecs
https://pypi.org/project/imagecodecs
BSD 3-Clause "New" or "Revised" License
117 stars 23 forks source link

Feature Request: Add JPEG XL Float Support #95

Closed John-P closed 8 months ago

John-P commented 8 months ago

I noticed that JPEG XL supports float32 and float16 data types. Would it be possible to add support for this?

JPEG XL Docs: https://libjxl.readthedocs.io/en/latest/api_common.html#_CPPv411JxlDataType

cgohlke commented 8 months ago

float32 and float16 are already supported by both jpepxl_encode and jpegxl_decode. Is something not working for you? There are several sample images at https://github.com/cgohlke/imagecodecs-samples.

John-P commented 8 months ago

I apologize - it does appear to work! I think may have been accidentally using an outdated version when I tried earlier.