yllan / JXLook

JPEG-XL viewer on macOS
MIT License
69 stars 7 forks source link

Improve jxl swift #17

Closed JLHwung closed 2 years ago

JLHwung commented 2 years ago

This PR updated libjxl to 0.6.1+ and improved feature support in JXL.swift.

One notable change is that non-grayscale images are now decoded into 32bit float, which aligns to the official decoder example and avoids clipping wide gamut images.

I have tested JXL.swift against https://github.com/libjxl/conformance. Among the test cases, CMYK image is not yet supported: The official djxl decoder also missed the Black channel so I guess they aren't many we can do about that.

Animated JXL has partial support: we display the first frame instead of the last frame for better performance. We should decide later if we want to support animations.

This PR can be reviewed by commits.

yllan commented 2 years ago

Thanks for your PR!