Skip to content

How can I convert jpeg to jpeg-xl (lossless) #872

Answered by ghost
JoeWierer asked this question in Help
Discussion options

You must be logged in to vote

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…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@JoeWierer
Comment options

@Zatigemm
Comment options

@drhead
Comment options

Answer selected by JoeWierer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants