Crates.io | rexif |
lib.rs | rexif |
version | |
source | src |
created_at | 2015-11-05 03:18:43.719565 |
updated_at | 2024-12-02 14:03:33.33754 |
description | RExif is a native Rust crate, written to extract EXIF data from JPEG and TIFF images. |
homepage | https://lib.rs/crates/rexif |
repository | https://github.com/kornelski/rexif.git |
max_upload_size | |
id | 3367 |
Cargo.toml error: | TOML parse error at line 29, column 1 | 29 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
RExif is a native Rust crate, written to extract EXIF data from JPEG and TIFF images.
It can be used as a library, or as a command-line tool. The sample binary called 'rexiftool' accepts files as arguments and prints the EXIF data. It gives a rough idea on how to use the crate.
match rexif::parse_file(&file_name) {
Ok(exif) => {
println!("{} {} exif entries: {}", file_name,
exif.mime, exif.entries.len());
for entry in &exif.entries {
println!(" {}: {}",
entry.tag,
entry.value_more_readable);
}
},
Err(e) => {
eprintln!("Error in {}: {} {}", &file_name,
Error::description(&e), e.extra).unwrap();
}
}
The src/main.rs
file is a good starting point to learn how to use the crate,
then take a look into the ExifEntry
struct.