pub struct Exif { /* private fields */ }
Expand description
Represents Exif information in a JPEG/HEIF file.
Please note that Exif values are lazy-parsed, meaning that they are only
truly parsed when the Exif::get_value
and Exif::get_values
methods are
called.
This allows you to parse Exif values on-demand, reducing the parsing
overhead.
Implementations§
source§impl Exif
impl Exif
sourcepub fn get_values<'b>(
&self,
tags: &'b [ExifTag]
) -> Vec<(&'b ExifTag, EntryValue)>
pub fn get_values<'b>( &self, tags: &'b [ExifTag] ) -> Vec<(&'b ExifTag, EntryValue)>
Searches for specified tags within the parsed Exif data, and parses the corresponding values within the found entries. The final result is returned in the form of a hash table.
Please note that this method will ignore errors encountered during the search and parsing process, such as missing tags or errors in parsing values, and handle them silently.
sourcepub fn get_value(&self, tag: &ExifTag) -> Result<Option<EntryValue>>
pub fn get_value(&self, tag: &ExifTag) -> Result<Option<EntryValue>>
Searches for specified tag
within the parsed Exif structure, and
parses the corresponding value within the found entry.
sourcepub fn get_value_by_tag_code(&self, tag: u16) -> Result<Option<EntryValue>>
pub fn get_value_by_tag_code(&self, tag: u16) -> Result<Option<EntryValue>>
Searches for specified tag
within the parsed Exif structure, and
parses the corresponding value within the found entry.
sourcepub fn get_gps_info(&self) -> Result<Option<GPSInfo>>
pub fn get_gps_info(&self) -> Result<Option<GPSInfo>>
Searches and parses the found GPS information within the parsed Exif structure.