9 releases
| 0.8.6 | Aug 14, 2025 |
|---|---|
| 0.8.5 | Jul 3, 2025 |
| 0.8.4 | Jun 24, 2025 |
| 0.8.3 | Feb 24, 2025 |
| 0.6.4 |
|
#808 in Images
1,184,188 downloads per month
Used in 166 crates
(2 directly)
47KB
1K
SLoC
AVIF image serializer (muxer)
Minimal writer for AVIF header structure. This is lean, safe-Rust alternative to libavif. It creates the jungle of MPEG/HEIF/MIAF/ISO-BMFF "boxes" as appropriate for AVIF files. Supports alpha channel embedding.
Compatible with decoders in Chrome 85+, libavif v0.8.1, and Firefox 92. It's used in cavif and other encoders.
Together with rav1e, it allows pure-Rust AVIF image encoding.
Requirements
- Latest stable version of Rust.
Usage
-
Compress pixels using an AV1 encoder, such as rav1e. libaom works too.
-
Call
avif_serialize::serialize_to_vec(av1_data, None, width, height, 8)
See ravif crate sources for example usage.
Dependencies
~67KB