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 ⬅️

The pre-built zip includes a Debian package and a portable static executable, with no dependencies, that runs on any Linux distro. It also includes executables for macOS and Windows.

Compatibility

Building

To build it from source you need:

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...