Skip to content
Merged
Changes from 3 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
14 changes: 11 additions & 3 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}}`

- 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}}`
Comment thread
david2000hun1 marked this conversation as resolved.
Outdated

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

`cjxl {{[-q|--quality]}} {{0..100}} --lossless_jpeg {{0}} {{path/to/image.jpeg}} {{path/to/output.jxl}}`
Comment thread
david2000hun1 marked this conversation as resolved.
Outdated

- Display an extremely detailed help:

Expand Down
Loading