# Mac bigsur, Python3.7.6
from pyexiv2 import Image
img = Image(r'IMG_9699.jpg')
img.read_exif()
Error:
Traceback (most recent call last):
File "/Users/***/Desktop/exiv2_test/pyexiv2-master/sample.py", line 3, in <module>
img = Image(r'IMG_9699.jpg')
File "/Users/***/Desktop/exiv2_test/pyexiv2-master/pyexiv2/core.py", line 16, in __init__
self.img = exiv2api.Image(filename.encode(encoding))
RuntimeError: Directory Canon with 7424 entries considered invalid; not read.
With exiv2 command line tool, it returns error and metadata.
I am sorry I cannot attach the jpg file due to the copyright issue.
Is it possible to ignore the error and get the metadata?
Thank you.
My code:
Error:
With exiv2 command line tool, it returns error and metadata.
I am sorry I cannot attach the jpg file due to the copyright issue. Is it possible to ignore the error and get the metadata? Thank you.