Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions pages/common/cjxl.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
# cjxl

> Compress images to JPEG XL.
> Convert and compress images to JPEG XL.
> Accepted input extensions are PNG, APNG, GIF, JPEG, EXR, PPM, PFM, PAM, PGX, and JXL.
> More information: <https://github.com/libjxl/libjxl/blob/main/doc/man/cjxl.txt>.

- Convert an image to JPEG XL:

`cjxl {{path/to/image.ext}} {{path/to/output.jxl}}`
`cjxl {{path/to/image.ext}} {{path/to/output}}.jxl`

- Set quality to lossless and maximize compression of the resulting image:
- Convert with a specific effort level ('1' - fastest but worst results, '10' - slowest but best results, '7' - default):

`cjxl --distance 0 --effort 9 {{path/to/image.ext}} {{path/to/output.jxl}}`
`cjxl {{[-e|--effort]}} {{1..10}} {{path/to/image.ext}} {{path/to/output}}.jxl`

- Convert with a specific quality:

`cjxl {{[-q|--quality]}} {{0..100}} {{path/to/image.ext}} {{path/to/output}}.jxl`

- Convert a JPEG to a JPEG XL with specific lossy quality:

`cjxl {{[-q|--quality]}} {{0..100}} {{[-j|--lossless_jpeg]}} 0 {{path/to/image.jpeg}} {{path/to/output}}.jxl`

- Display an extremely detailed help:

Expand Down
Loading