We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7a22a commit 5359a71Copy full SHA for 5359a71
src/lib.rs
@@ -1,3 +1,28 @@
1
+//! Library to read IPTC tags from JPEG files, in pure Rust.
2
+//!
3
+//! # Example
4
+//! ```rust,no_run
5
+//! use iptc::IPTC;
6
+//! use iptc::IPTCTag;
7
+//! use std::error::Error;
8
+//! use std::path::Path;
9
+
10
+//! fn main() -> Result<(), Box<dyn Error>> {
11
+//! let image_path = Path::new("tests/smiley.jpg");
12
13
+//! let iptc = IPTC::read_from_path(&image_path)?;
14
15
+//! // See all the tags in the image
16
+//! println!("IPTC: {:?}", iptc.get_all());
17
18
+//! // Get a specific tag
19
+//! let keywords = iptc.get(IPTCTag::Keywords);
20
+//! println!("keywords: {}", keywords);
21
22
+//! Ok(())
23
+//! }
24
+//! ```
25
26
mod jpeg;
27
use jpeg::JPEGReader;
28
mod tiff;
0 commit comments