rexiv2 0.3.0

This library provides a Rust wrapper around the gexiv2 library, which is a GObject-based wrapper around the Exiv2 library, which provides read and write access to the Exif, XMP, and IPTC metadata in media files (typically photos) in various formats.
1
2
3
4
5
6
7
8
9
10
11
extern crate rexiv2;

fn main() {
    let tag = "Xmp.dc.subject";

    let file = "/home/felix/wrk/photo-metadata-test/metadata-test.jpg";
    let meta = rexiv2::Metadata::new_from_path(&file).unwrap();

    println!("{:?}", meta.set_tag_multiple_strings(tag, &vec!("one", "two")));
    println!("{:?}", meta.get_tag_multiple_strings(tag));
}