Closed Cykooz closed 4 years ago
Thanks!
I want to add your way(continue without exception) as option.
load(filename, force_load=True)
Could you add option like above?
I have found images with other types of errors in EXIF. Such as:
ValueError
in _ExifReader.convert_value()
method;struct.error
inside of for-loop through tags in _ExifReader.get_ifd_dict()
method;I am going to rewrite this Pull-request and add a new safe_load()
function that will return a tuple with a EXIF-dictionary and a list of errors.
Fixed exception (struct.error) in '_ExifReader.get_ifd_dict()' method during parse of EXIF with invalid IFD pointers. Instead, the method returns dictionary with '_errors' key that has description of error.