Skip to content

Commit 920c9d7

Browse files
mvarandamvaranda2
andauthored
fix webp for file conversion by magick (#132)
Co-authored-by: mvaranda <mv_email@yahoo.com>
1 parent 317ed87 commit 920c9d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exifread/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def _find_webp_exif(fh: BinaryIO) -> tuple:
3939
if len(data) != 8:
4040
raise InvalidExif("Invalid webp file chunk header.")
4141
if data[0:4] == b'EXIF':
42+
fh.seek(6, 1)
4243
offset = fh.tell()
4344
endian = fh.read(1)
4445
return offset, endian

0 commit comments

Comments
 (0)