mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-14 15:16:11 -04:00
In case the image's EXIF does not contain the "Orientation" key
This commit is contained in:
+1
-1
@@ -180,7 +180,7 @@ class AirDropUtil:
|
||||
orientation = exif['Orientation']
|
||||
if orientation in angles.keys():
|
||||
im = im.rotate(angles[orientation], expand=True)
|
||||
except AttributeError:
|
||||
except (AttributeError, KeyError):
|
||||
pass # no EXIF data available
|
||||
|
||||
# Big image
|
||||
|
||||
Reference in New Issue
Block a user