Crates.io | avif-decode |
lib.rs | avif-decode |
version | 1.0.1 |
source | src |
created_at | 2021-01-12 16:44:39.614646 |
updated_at | 2024-08-02 13:09:43.499751 |
description | Convert AVIF images to PNG or decompressed pixel data |
homepage | https://lib.rs/avif-decode |
repository | https://github.com/kornelski/avif-decode |
max_upload_size | |
id | 340958 |
size | 31,335 |
Converts AVIF images (AV1 + HEIF) to standard PNG images. It's meant to decode very accurately (using AOM, precise colorspace conversions). It is not meant to produce small PNG files. Some PNG files will be 100 times larger than the AVIF input.
It can also be used as a Rust library for decoding straight to uncompressed pixels (RGBA, etc).
avif_decode input.avif output.png
It always processes one file at a time. If output path is omitted, it'll be the same as the input, except with a .png
extension. Add -f
to overwrite output files.
Requires Rust 1.75 or later and a C compiler.
cargo install avif-decode
New BSD