Roughsketch / imagesize

Quickly probe the size of various image formats without reading the entire file.
MIT License
57 stars 12 forks source link

Add support for JPEG XL #13

Closed oscar-rc1 closed 3 years ago

oscar-rc1 commented 3 years ago

This PR adds support for the new JPEG XL format and is based on the reference implementation in libjxl. The code includes support for images with orientation metadata.

Roughsketch commented 3 years ago

Thanks for taking the time to implement this!

I've been running this through a fuzzer to ensure that nothing crashes and have been running into some issues that you may want to take a look into. If you haven't already, I'd recommend installing and running cargo fuzz if you haven't already. In particular I've ran into two crashes which I'll comment below.