Closed n00mkrad closed 3 years ago
Update: It seems like it's not lossless, but uses a specific compression level, possibly 95. Either way, it ignores MagickImage.Quality.
The JXL encoder is super new and only has a minimal feature set. Will need to figure out how we can set the quality in the JPEG-XL library. This might not be possible yet in the current API.
Oh, okay. I thought it would be pretty easy with the reference library.
Take your time then.
I can confirm that the current implementation is NOT lossless:
10x Diff, PNG -> JXL:
10x Diff, JPEG -> JXL:
If you want lossless compression you will need to set the quality to 100
. That is the only encoder option that is currently implemented.
We added support for the quality setting and also setting the effort
.
Prerequisites
Description
Encoding JPEG XL images ignores the quality setting and always uses lossles mode, even though the reference library should support lossy compression.
Steps to Reproduce
Convert an image to JPEG XL with different MagickImage.Quality values
System Configuration