Linux command
djxl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Decode JPEG XL
djxl [image.jxl] [output.png]
Decode to JPEG
djxl [image.jxl] [output.jpg]
Decode to PPM
djxl [image.jxl] [output.ppm]
Show image info
djxl --info [image.jxl]
Decode with specific
djxl --num_threads [4] [image.jxl] [output.png]
Decode specific frame
djxl --frame [5] [animation.jxl] [frame5.png]
说明
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.
参数
- --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.
FAQ
What is the djxl command used for?
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.
How do I run a basic djxl example?
Run `djxl [image.jxl] [output.png]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --info do in djxl?
Show image information only.