CJXL(1)
π
CJXL(1) β the girlies' guide to cjxl
Okay so real talk, bestie: this is the cjxl manual page, from the CJXL section of the manual, and honestly it's giving main character energy for anyone who wants to squeeze pictures into JPEG XL. Let's get into it. π
β¨ NAME β¨
cjxl β compress images to JPEG XL. That's it, that's the vibe.
πΈ SYNOPSIS πΈ
cjxl [options...] input [output.jxl]
π¦ DESCRIPTION π¦
So cjxl compresses an image or an animation to the JPEG XL format. And the whole point, the actual point, is to spare you the trouble of figuring out a perfect set of optimal parameters for every single individual image. Like... nobody has the time, babe. Instead, for a given target quality, it should give you consistent visual results across all kinds of different images. The defaults have been chosen to be sensible (iconic behavior honestly), so these commands should give satisfactory results in most cases:
cjxl input.png output.jxl
cjxl input.jpg output.jxl
cjxl input.gif output.jxl
No cap, just run it. π«Ά
π₯ OPTIONS π₯
-h,--helpβ Displays the options thatcjxlsupports. On its own it will only show basic options, but you can combine it with-vor-v -vto show increasingly advanced options as well. Level up, bestie. π§-v,--verboseβ Increases verbosity. Can be repeated to increase it further, and it also applies to--help. So yes, more-v, more knowledge.- *
-d*distance,--distance=distance β The preferred way to specify quality, and honestly the way you should be doing it. It's specified in multiples of a just-noticeable difference. So:-d 0is mathematically lossless,-d 1should be visually lossless, and higher distances yield denser and denser files with lower and lower fidelity. Lossy sources such as JPEG and GIF files are compressed losslessly by default β and in the case of JPEG files specifically, the original JPEG can then be reconstructed bit-for-bit (yes, bit-for-bit, she ate π ). For lossless sources,-d 1is the default. - *
-q*quality,--quality=quality β Alternative way to indicate the desired quality.100is lossless and lower values yield smaller files. There is no lower bound to this quality parameter, but positive values should approximately match the quality setting oflibjpeg. Ngl that's lowkey convenient. - *
-e*effort,--effort=effort β Controls the amount of effort that goes into producing an "optimal" file in terms of quality/size. That is to say, all other parameters being equal, a higher effort should yield a file that is at least as dense and possibly denser, and with at least as high and possibly higher quality. Basically: try harder, get better. β¨
Recognized effort settings, from fastest to slowest, are:
1or "lightning"2or "thunder"3or "falcon"4or "cheetah"5or "hare"6or "wombat"7or "squirrel" (default)8or "kitten"9or "tortoise"
The animal lore is unmatched honestly. Squirrel is the default because squirrel is That Girl. πΏοΈ
β EXAMPLES β
# Compress a PNG file to a high-quality JPEG XL version.
$ cjxl input.png output.jxl
# Compress it at a slightly lower quality, appropriate for web use.
$ cjxl -d 2 input.png output.jxl
# Compress it losslessly. These are equivalent.
$ cjxl -d 0 input.png lossless.jxl
$ cjxl -q 100 input.png lossless.jxl
# Compress a JPEG file losslessly.
$ cjxl input.jpeg lossless-jpeg.jxl
Every single one of these is a slay. Copy, paste, go. π
π SEE ALSO π
djxl(1) β the other half of the duo, iykyk.
π Reminder bestie:-d 0and-q 100are both lossless, and for JPEG input the original can be reconstructed bit-for-bit. Do not let anyone tell you otherwise.
And that's the whole page, babe β this was CJXL(1), dated 05/28/2026, and you understood all of it. Obsessed with you fr fr ππ
π¦ where this page comes from
- opensuse-leap 16.0: libjxl-tools 0.11.2-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libjxl-tools 0.11.2-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libjxl-tools 0.11.2-160000.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libjxl-tools 0.11.2-160000.2.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms