avif-info-rust

Crates.ioavif-info-rust
lib.rsavif-info-rust
version0.1.0
created_at2025-06-18 12:54:28.125072+00
updated_at2025-06-18 12:54:28.125072+00
descriptionA CLI wrapper for the Rust-based libavifinfo, designed for simple validation and extraction.
homepage
repositoryhttps://github.com/simplespace-cat/avif-info-rust
max_upload_size
id1717031
size70,122
Raum (simplespace-cat)

documentation

README

avif-info-rust

A command-line tool for validating and extracting information from AVIF.

This tool is a CLI wrapper around the Rust implementation of libavifinfo, intended solely for basic validation and extraction tasks.

For decoding images or extracting more advanced features, please use libavif instead.

Note: This tool is based on libavifinfo which is often more permissive than libavif and may return features for images that libavif would consider invalid.

Installation

cargo install avif-info-rust

Usage

AVIF file information and validation tool

Usage: avif-info-rust [OPTIONS] [PATH]

Arguments:
  [PATH]  

Options:
  -i, --identify   
  -f, --features   
  -r, --recursive  
      --json       
  -h, --help       Print help
  -V, --version    Print version

avif-info-rust -i ./
[VALID] ./avifinfo_test_1x1_10b_nopixi_metasize64b_mdatsize0.avif
[VALID] ./avifinfo_test_12x34_gainmap_tmap.avif
[VALID] ./avifinfo_test_1x1.avif
[VALID] ./avifinfo_test_2x2_alpha.avif
[VALID] ./avifinfo_test_20x20_gainmap.avif
[VALID] ./avifinfo_test_199x200_alpha_grid2x1.avif
[VALID] ./avifinfo_test_12x34_gainmap_tmap_iref_after_iprp.avif

[SUMMARY] Seen: 7, Processed AVIFs: 7, Valid: 7, Invalid/Errors: 0

License

This project is licensed under the BSD-2-Clause License.

The AVIF parsing code in lib/lib.rs is based on libavifinfo from Alliance for Open Media, and is subject to their BSD-2-Clause License and Patent License. See LICENSE-AOM and PATENTS-AOM files for details.

Acknowledgments

Commit count: 10

cargo fmt