cavif — PNG/JPEG to AVIF converter

Encoder/converter for AVIF images. Based on rav1e and avif-serialize, which makes it pure Rust, with no C code!

Installation

➡️ Download the latest release ⬅️

Alternatively, build it from source. It requires:

Then run in a terminal:

bash cargo install cavif

Running

Run in a terminal (hint: you don't need to type the path, terminals accept file drag'n'drop)

bash cavif image.png

It makes image.avif. You can adjust quality (it's in 1-100 scale):

bash cavif --quality 60 image.png

Usage

You can also specify multiple images (encoding is multi-threaded, so the more, the better!).

text cavif [OPTIONS] IMAGES...