Skip to content

Commit 94d8208

Browse files
david2000hun1ivanbalutaManagor
authored
cjxl: add more examples, improve description (#23003)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
1 parent 7d9f365 commit 94d8208

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

pages/common/cjxl.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
# cjxl
22

3-
> Compress images to JPEG XL.
3+
> Convert and compress images to JPEG XL.
44
> Accepted input extensions are PNG, APNG, GIF, JPEG, EXR, PPM, PFM, PAM, PGX, and JXL.
55
> More information: <https://github.com/libjxl/libjxl/blob/main/doc/man/cjxl.txt>.
66
77
- Convert an image to JPEG XL:
88

9-
`cjxl {{path/to/image.ext}} {{path/to/output.jxl}}`
9+
`cjxl {{path/to/image.ext}} {{path/to/output}}.jxl`
1010

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

13-
`cjxl --distance 0 --effort 9 {{path/to/image.ext}} {{path/to/output.jxl}}`
13+
`cjxl {{[-e|--effort]}} {{1..10}} {{path/to/image.ext}} {{path/to/output}}.jxl`
14+
15+
- Convert with a specific quality:
16+
17+
`cjxl {{[-q|--quality]}} {{0..100}} {{path/to/image.ext}} {{path/to/output}}.jxl`
18+
19+
- Convert a JPEG to a JPEG XL with specific lossy quality:
20+
21+
`cjxl {{[-q|--quality]}} {{0..100}} {{[-j|--lossless_jpeg]}} 0 {{path/to/image.jpeg}} {{path/to/output}}.jxl`
1422

1523
- Display an extremely detailed help:
1624

0 commit comments

Comments
 (0)