Expand description
A rust library to parse EXIF data from images.
§Why another EXIF parsing library?
Most EXIF libraries parse all the tags, whether they are needed or not, which consumes unnecessary memory and cpu resources. But quickexif parses the only needed tags to save computational resources during large-scale images EXIF extraction.
§Example
let sample = std::fs::read("sample.JPG").unwrap();
let rule = quickexif::describe_rule!(tiff {
0x010f {
str + 0 / make
}
0x8769 {
0xa002 / width
0xa003 / height
}
});
let parsed_info = quickexif::parse(&sample, &rule).unwrap();
let make = parsed_info.str("make").unwrap();
let width = parsed_info.u32("width").unwrap();
let height = parsed_info.u32("height").unwrap();Re-exports§
pub use parser::parse;pub use parser::parse_with_prev_info;pub use parsed_info::ParsedInfo;pub use rule::ParsingRule;
Modules§
- parsed_
info - parser
- Parses the data bytes by the rule and collects the values.
- rule
- Rule definition and macro for rule generation
- value
- Represents the type of values that may be contained in the EXIF data.
Macros§
- describe_
rule - A rule generator with simple syntax