- bookworm 0.7.0-10
- testing 0.10.4-2
- unstable 0.10.4-2
- experimental 0.11.1-1
DJXL(1) | DJXL(1) |
NAME¶
djxl - decompress JPEG XL images
SYNOPSIS¶
djxl [options...] input.jxl [output]
DESCRIPTION¶
djxl decompresses a JPEG XL image or animation. The output format is determined by the extension of the output file, which can be .png, .jpg, .ppm, .pfm. If the JPEG XL input file contains an animation, multiple output files will be produced, with names of the form "output-framenumber.ext".
OPTIONS¶
-V, --version
--num_reps=N
--num_threads=N
--bits_per_sample=N
--display_nits=0.3-250
--color_space=RGB_D65_SRG_Rel_Lin
-s N, --downsampling=N
--allow_partial_files
-j, --pixels_to_jpeg
-q N, --jpeg_quality=N
--norender_spotcolors Disables rendering spot colors.
--preview_out=FILENAME
--icc_out=FILENAME
--orig_icc_out=FILENAME
--metadata_out=FILENAME
--print_read_bytes
--quiet
-h, --help
EXAMPLES¶
# Decompress a JPEG XL file to PNG $ djxl input.jxl output.png # Reconstruct a losslessly-recompressed JPEG file $ djxl lossless-jpeg.jxl reconstructed.jpeg
# Lossless compression
Lossless pixel compression only preserves the pixels losslessly, not the input bitstream. To check that the pixels are identical, one can do something like the following (if this says 0, then the maximum pixel error is 0, so it’s lossless):
# Lossless compression of PNG: $ cjxl -d 0.0 input.png lossless.png # Decompress a JPEG XL file to PNG $ djxl lossless.jxl lossless.png $ compare -metric pae input.png lossless.png null: 0 (0)
SEE ALSO¶
01/29/2023 |