1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 11:55:34 +02:00

cavif: improve page (#12274)

This commit is contained in:
Vitor Henrique 2024-02-15 03:37:52 -03:00 committed by GitHub
parent 1e41872b72
commit 72edb925d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,21 +1,21 @@
# cavif
> PNG/JPEG to AVIF converter. Written in Rust.
> Convert PNG/JPEG images to AVIF. Written in Rust.
> See also: `convert`.
> More information: <https://github.com/kornelski/cavif-rs>.
- Convert a JPEG file to AVIF, saving it to `file.avif`:
`cavif {{path/to/file.jpg}}`
`cavif {{path/to/image.jpg}}`
- Adjust the image quality (1-100) and convert a PNG file to AVIF:
- Adjust the image quality and convert a PNG file to AVIF:
`cavif --quality {{60}} {{path/to/file.png}}`
`cavif --quality {{1..100}} {{path/to/image.png}}`
- Specify the output location:
`cavif {{path/to/file.jpg}} --output {{path/to/file.avif}}`
`cavif {{path/to/image.jpg}} --output {{path/to/output.avif}}`
- Overwrite the destination file if it already exists:
`cavif --overwrite {{path/to/file.jpg}}`
`cavif --overwrite {{path/to/image.jpg}}`