You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attached HEIC image was taken with an iPhone XR and when I try to extract the metadata using exifread.process_file(fobj, details = False) then I get the following Traceback:
Traceback (most recent call last):
File "create_photo_album_JSON.py", line 83, in <module>
tags = exifread.process_file(fobj, details = False)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/__init__.py", line 242, in process_file
offset, endian = heic.find_exif()
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 229, in find_exif
meta = self.expect_parse('meta')
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 122, in expect_parse
return self.parse_box(box)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 133, in parse_box
probe(box)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 155, in parse_meta
psub(box)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 221, in parse_iloc
extent_length = self.get_int(box.length_size)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 74, in get_int
return self.get32()
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/exifread/heic.py", line 58, in get32
return struct.unpack('>L', self.get(4))[0]
struct.error: unpack requires a buffer of 4 bytes
The script was run on MacOS Big Sur 11.1 using Python 3.8.6 and ExifRead 2.3.1 from MacPorts.
The text was updated successfully, but these errors were encountered:
The attached HEIC image was taken with an iPhone XR and when I try to extract the metadata using
exifread.process_file(fobj, details = False)
then I get the following Traceback:The script was run on MacOS Big Sur 11.1 using Python 3.8.6 and ExifRead 2.3.1 from MacPorts.
The text was updated successfully, but these errors were encountered: