Skip to content

Commit

Permalink
Rename exif to exif_metadata for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel committed Jul 26, 2024
1 parent da44494 commit 2dd3f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/codecs/jpeg/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl<R: BufRead + Seek> JpegDecoder<R> {

/// Returns the raw [Exif](https://en.wikipedia.org/wiki/Exif) chunk, if it is present.
/// A third-party crate such as [`kamadak-exif`](https://docs.rs/kamadak-exif/) is required to actually parse it.
pub fn exif(&mut self) -> ImageResult<Option<Vec<u8>>> {
pub fn exif_metadata(&mut self) -> ImageResult<Option<Vec<u8>>> {
let mut decoder = zune_jpeg::JpegDecoder::new(&self.input);
decoder.decode_headers().map_err(ImageError::from_jpeg)?;
Ok(decoder.exif().cloned())
Expand Down

0 comments on commit 2dd3f1a

Please sign in to comment.