Skip to content

Commit

Permalink
fix webp for file conversion by magick (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: mvaranda <[email protected]>
  • Loading branch information
mvaranda and mvaranda authored May 2, 2023
1 parent 317ed87 commit 920c9d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exifread/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def _find_webp_exif(fh: BinaryIO) -> tuple:
if len(data) != 8:
raise InvalidExif("Invalid webp file chunk header.")
if data[0:4] == b'EXIF':
fh.seek(6, 1)
offset = fh.tell()
endian = fh.read(1)
return offset, endian
Expand Down

0 comments on commit 920c9d7

Please sign in to comment.