Skip to content

Commit

Permalink
Merge pull request #2319 from Shnatsel/webp-exif
Browse files Browse the repository at this point in the history
Implement Exif metadata extraction for WebP
  • Loading branch information
Shnatsel committed Sep 1, 2024
2 parents c8d67ec + 1431071 commit 4afe957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/codecs/webp/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ impl<R: BufRead + Seek> ImageDecoder for WebPDecoder<R> {
.icc_profile()
.map_err(ImageError::from_webp_decode)
}

fn exif_metadata(&mut self) -> ImageResult<Option<Vec<u8>>> {
self.inner
.exif_metadata()
.map_err(ImageError::from_webp_decode)
}
}

impl<'a, R: 'a + Read + Seek> AnimationDecoder<'a> for WebPDecoder<R> {
Expand Down

0 comments on commit 4afe957

Please sign in to comment.