OS Manuals

/usr/bin/cjxl

JPEG XL command-line tools (cjxl, djxl, benchmark_xl)

From libjxl-tools 0.12.0-r3 (os), captured 2026-11-05 by running cjxl --help (exit 0). permalink

JPEG XL encoder v0.12.0 a7a9c78 [_AVX2_,SSE4,SSE2] {GNU 16.2.0}
Usage: /usr/bin/cjxl INPUT OUTPUT [OPTIONS...]
 INPUT
    the input can be JXL, PPM, PNM, PFM, PAM, PGX, PNG, APNG, GIF, JPEG
 OUTPUT
    the compressed JXL output file

Basic options:
 -d DISTANCE, --distance=DISTANCE
    Target visual distance in JND units, range: 0.0 .. 25.0.
    0.0 = mathematically lossless, default for JPEG/GIF input.
    1.0 = visually lossless, default for other input.
    Recommended range: 0.5 .. 3.0. Higher values allow more distortion.
Mutually exclusive with --quality.
 -q QUALITY, --quality=QUALITY
    Internally mapped to --distance, range: 0 .. 100.
    100 = mathematically lossless. 90 = visually lossless.
    Quality values roughly match libjpeg quality.
    Recommended range: 68 .. 96. Mutually exclusive with --distance.
 -e EFFORT, --effort=EFFORT
    Encoder effort, range: 1 .. 10, default = 7.
    Higher values allow more computation, generally achieving smaller output at same quality.
    For lossy encoding, higher effort should achieve more accurate quality.
 -V, --version
    Print encoder library version number and exit.
 --quiet
    Minimal printing.
 -v, --verbose
    Verbose printing; can be repeated and also applies to help (!).
 --buffering=-1..3
    Controls how much input buffering libjxl uses, affecting memory usage and compression quality.
    -1 = encoder chooses (default). 0 = buffer entire image (most memory, best compression).
    1 = stream input for large images. 2 = stream input with a lower threshold.
    3 = deprecated; use --output_mode to control output streaming.

 -h, --help
    Prints this help message. Add -v (up to a total of 4 times) to see more options.
Options (8)
OptionDescriptionSource
-d, --distance DISTANCETarget visual distance in JND units, range: 0.0 ..help
-q, --quality QUALITYInternally mapped to --distance, range: 0 ..help
-e, --effort EFFORTEncoder effort, range: 1 ..help
-V, --versionPrint encoder library version number and exit.help
--quietMinimal printing.help
-v, --verboseVerbose printing;help
--buffering -1..3Controls how much input buffering libjxl uses, affecting memory usage and compression quality.help
-h, --helpPrints this help message.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.