#exif #metadata #tags #gps #ifd

bin+lib rexif

RExif is a native Rust crate, written to extract EXIF data from JPEG and TIFF images

11 releases

0.7.5 Dec 2, 2024
0.7.4 Jul 14, 2024
0.7.3 May 14, 2021
0.5.1 Oct 31, 2020
0.3.1 Nov 9, 2015

#26 in Images

Download history 34658/week @ 2024-10-30 28431/week @ 2024-11-06 33801/week @ 2024-11-13 52384/week @ 2024-11-20 32999/week @ 2024-11-27 54029/week @ 2024-12-04 77074/week @ 2024-12-11 57800/week @ 2024-12-18 20433/week @ 2024-12-25 54209/week @ 2025-01-01 114997/week @ 2025-01-08 113104/week @ 2025-01-15 148671/week @ 2025-01-22 185119/week @ 2025-01-29 168799/week @ 2025-02-05 145251/week @ 2025-02-12

668,335 downloads per month
Used in 4 crates

MIT license

105KB
2.5K SLoC

rexif

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.

Requirements

  • Latest stable Rust version from rustup.

Example

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.

No runtime deps

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy