tldr/pages/common/cavif.md

22 lines
541 B
Markdown
Raw Normal View History

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