Process images with malformed GPS tags

pull/1230/head v2.4.1
Piero Toffanin 2021-01-28 09:24:07 -05:00
rodzic 4d5ea4f280
commit 7cbd014ee9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -127,7 +127,7 @@ class ODM_Photo:
self.latitude = self.dms_to_decimal(tags['GPS GPSLatitude'], tags['GPS GPSLatitudeRef'])
if 'GPS GPSLongitude' in tags and 'GPS GPSLongitudeRef' in tags:
self.longitude = self.dms_to_decimal(tags['GPS GPSLongitude'], tags['GPS GPSLongitudeRef'])
except IndexError as e:
except (IndexError, ValueError) as e:
log.ODM_WARNING("Cannot read basic EXIF tags for %s: %s" % (_path_file, str(e)))
try: