IPTC
Read IPTC tags from JPEG files, in pure Rust.
Example
use IPTC;
use Path;
let image_path = new;
let mut tags = IPTCread_from_path;
let city = tags.get
assert_eq!;
tags.set_city
.set_country
.set_keywords;
tags.write_to_file?;
Read IPTC tags from JPEG files, in pure Rust.
use iptc::IPTC;
use std::path::Path;
let image_path = Path::new("image.png");
let mut tags = IPTC::read_from_path(&image_path);
let city = tags.get(IPTCTags::City)
assert_eq!(city, "London");
tags.set_city("Oslo")
.set_country("Norway")
.set_keywords(vec!["keyword1", "keyword2"]);
tags.write_to_file(&image_path)?;