exiftool-rs 0.5.0

Read, write, and edit metadata in 93 file formats — a pure Rust reimplementation of ExifTool 13.53 with 100% tag name parity (194/194 test files)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Extract metadata as a HashMap.
//!
//! Usage: cargo run --example json_output -- photo.jpg

fn main() {
    let args: Vec<String> = std::env::args().collect();
    if args.len() < 2 {
        eprintln!("Usage: {} <file>", args[0]);
        std::process::exit(1);
    }

    let info = exiftool_rs::image_info(&args[1]).unwrap();
    for (key, value) in &info {
        println!("{}: {}", key, value);
    }
}