2023-07-09 01:15:23 +01:00
|
|
|
# cavif
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
> PNG/JPEG to AVIF converter. Written in Rust.
|
|
|
|
> See also: `convert`.
|
2023-07-09 01:15:23 +01:00
|
|
|
> More information: <https://github.com/kornelski/cavif-rs>.
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Convert a JPEG file to AVIF, saving it to `file.avif`:
|
2023-07-09 01:15:23 +01:00
|
|
|
|
|
|
|
`cavif {{path/to/file.jpg}}`
|
|
|
|
|
|
|
|
- Adjust the image quality (1-100) and convert a PNG file to AVIF:
|
|
|
|
|
|
|
|
`cavif --quality {{60}} {{path/to/file.png}}`
|
|
|
|
|
2024-02-09 13:55:36 +00:00
|
|
|
- Specify the output location:
|
2023-07-09 01:15:23 +01:00
|
|
|
|
|
|
|
`cavif {{path/to/file.jpg}} --output {{path/to/file.avif}}`
|
|
|
|
|
|
|
|
- Overwrite the destination file if it already exists:
|
|
|
|
|
|
|
|
`cavif --overwrite {{path/to/file.jpg}}`
|