$ ravif

v0.13.0MAJOR UPDATE

rav1e-based pure Rust library for encoding images in AVIF format (powers the `cavif` tool)

Downloads: 16.6M
Recent: 4.4M
Versions: 37
Updated: January 19, 2026

Latest Update Summary

Crate

Name: ravif New version: 0.13.0 Release date: 2026-01-19T02:06:16.292679Z

Crate readme

Short description Encoder/converter for AVIF images.

Long description cavif is a tool to convert PNG/JPEG images to AVIF format, leveraging the rav1e and avif-serialize crates, making it a nearly pure-Rust solution with C LCMS2 used for color profiles. The converter supports multi-threaded encoding and allows quality and speed adjustments during conversion. It is compatible with Rust 1.67 or newer.

Features • multi-threaded encoding • supports PNG and JPEG input • adjustable quality (1-100) • adjustable speed (1-10) • no dependencies • static executable for Linux, macOS, and Windows • optimized defaults for AVIF encoding • supports color space adjustments

Code Examples Basic usage

 cavif image.png

Adjust quality

 cavif --quality 60 image.png

Output to specific directory

 cavif -o output/ image1.png image2.png

Using multiple images

 cavif [OPTIONS] IMAGES...

Linkshttps://github.com/kornelski/cavif/releaseshttps://caniuse.com/avifhttps://rustup.rs

https://api.github.com/repos/kornelski/cavif-rs/releases/186315511

Release info

Release version:

Release description

Code Examples

Minor update: 0.12.0 → 0.13.0

$ DOWNLOADS TREND

11.6M16.6M

$ VERSION HISTORY

v0.13.0January 19, 2026
v0.12.0June 21, 2025

$ LINKS

$ INSTALL

cargo add ravif

Or add to Cargo.toml: ravif = "0.13.0"