Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(exif): Add standard Exif IFD0 tags #2

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
[package]
name = "exif-io"
version = "0.1.0"
edition = "2021"
authors = ["Avinash Maddikonda <svasssakavi@gmail.com>"]
categories = [
"data-structures",
Expand All @@ -11,11 +8,15 @@ categories = [
"multimedia::images",
]
description = "A Rust library crate to read and write image EXIF data."
edition = "2021"
homepage = "https://docs.rs/crate/exif-io"
keywords = ["exif", "image", "metadata", "read", "write"]
license = "MIT"
name = "exif-io"
repository = "https://github.com/SFM61319/exif-io"
version = "0.1.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
fraction = { version = "0.15.1", default-features = false }
35 changes: 34 additions & 1 deletion cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,49 @@
"validateDirectives": true,
"version": "0.2",
"words": [
"Appn",
"Ascii",
"BCPS",
"CFA",
"CIE",
"CVD",
"demosaiced",
"DNG",
"DSC",
"EOI",
"EV",
"fn",
"FOSS",
"IEC",
"IFD",
"io",
"Iop",
"IPTC",
"JPEGDC",
"JPEGQ",
"JXL",
"Linearization",
"Mpf",
"msys",
"NAA",
"OECF",
"OPI",
"Opto",
"posix",
"repr",
"SFR",
"SMPTE",
"SOI",
"tada",
"Thresholding",
"TIFFEP",
"UCS",
"UI",
"UTF",
"Vec",
"WEBP",
"XY"
"XMP",
"XY",
"XYZ"
]
}
16 changes: 3 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}
//! Exif IO is a Rust library crate to read and write image Exif data.

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
pub mod tag;
pub mod types;
28 changes: 28 additions & 0 deletions src/tag.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//! [Exif tags](https://exiv2.org/tags.html) as defined in the
//! [Exif 2.3 standard](https://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf).

mod image;
pub use image::Image;

/// [Exif tags](https://exiv2.org/tags.html) as defined in the
/// [Exif 2.3 standard](https://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf).
#[derive(Clone, Debug, PartialEq)]
pub enum Tag {
/// Exif Image IFD0 tag.
Image(Image),

/// Exif Photo IFD0 tag.
Photo,

/// Exif Interoperability IFD0 tag.
Iop,

/// Exif GPS Info IFD0 tag.
GPSInfo,

/// Exif MPF Info IFD0 tag.
MpfInfo,

/// Exif Thumbnail IFD1 tag.
Thumbnail,
}
Loading