1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/cavif.md

22 lines
541 B
Markdown
Raw Normal View History

# cavif
2024-02-15 03:37:52 -03:00
> 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`:
2024-02-15 03:37:52 -03:00
`cavif {{path/to/image.jpg}}`
2024-02-15 03:37:52 -03:00
- Adjust the image quality and convert a PNG file to AVIF:
2024-02-15 03:37:52 -03:00
`cavif --quality {{1..100}} {{path/to/image.png}}`
- Specify the output location:
2024-02-15 03:37:52 -03:00
`cavif {{path/to/image.jpg}} --output {{path/to/output.avif}}`
- Overwrite the destination file if it already exists:
2024-02-15 03:37:52 -03:00
`cavif --overwrite {{path/to/image.jpg}}`