Crates.io | avif-serialize |
lib.rs | avif-serialize |
version | 0.8.3 |
source | src |
created_at | 2020-08-25 22:56:06.533596+00 |
updated_at | 2025-02-24 22:35:20.830696+00 |
description | Minimal writer for AVIF header structure (MPEG/HEIF/MIAF/ISO-BMFF) |
homepage | https://lib.rs/avif-serialize |
repository | https://github.com/kornelski/avif-serialize |
max_upload_size | |
id | 280770 |
size | 48,245 |
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.
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.