-
Hi. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You will need to set the |
Beta Was this translation helpful? Give feedback.
-
ImageMagick currently does not support JPEG XL's lossless JPEG transcode feature. If you want to use JPEG XL's lossless JPEG transcode feature, and be able to get back the original JPG file, you have to use the reference software. Even if you set ImageMagick's quality to 100, IM will decode the JPG to pixels and encode the pixels losslessly to JXL. However, this is actually slightly lossy (see this Reddit comment by JPEG XL developer for explanation). To sum up: |
Beta Was this translation helpful? Give feedback.
ImageMagick currently does not support JPEG XL's lossless JPEG transcode feature.
If you want to use JPEG XL's lossless JPEG transcode feature, and be able to get back the original JPG file, you have to use the reference software.
Even if you set ImageMagick's quality to 100, IM will decode the JPG to pixels and encode the pixels losslessly to JXL. However, this is actually slightly lossy (see this Reddit comment by JPEG XL developer for explanation).
To sum up:
Since IM does not support this feature yet, for the time being you can use reference software, encode with
cjxl image.jpg image.jxl
, enjoy ~20% smaller size, and you can get back the original JPG file (bit-by-bit the same, thus sa…