djxl
TLDR
Decode JPEG XL to PNG
SYNOPSIS
djxl [options] input.jxl [output]
DESCRIPTION
djxl is the reference JPEG XL decoder, converting JPEG XL images to other formats. It's part of the libjxl reference implementation and supports all JPEG XL features including animation, HDR, and lossless JPEG reconstruction.
JPEG XL files created by losslessly recompressing JPEG can be decoded back to the exact original JPEG bytes using the --jpeg flag. This allows JPEG XL to serve as a reversible compression layer.
The decoder supports various output formats with automatic format detection based on file extension, and can extract metadata and individual frames from animated images.
PARAMETERS
INPUT
JPEG XL file to decode.OUTPUT
Output file (format inferred from extension).--info
Show image information only.--num_threads N
Number of decoding threads.--frame N
Extract specific frame from animation.--jpeg
Reconstruct exact JPEG if losslessly recompressed.--bits_per_sample N
Output bit depth.--help
Display help information.
CAVEATS
Output format support depends on build configuration. Some HDR features may require specific output formats. JPEG reconstruction requires original was losslessly compressed. Large images may use significant memory.
HISTORY
djxl is part of the libjxl reference implementation of JPEG XL, developed by the JPEG Committee with contributions from Google. JPEG XL was standardized in 2022 as a next-generation image format combining features from Google's PIK and Cloudinary's FUIF.


