use key in dict instead of key in dict.keys()
This commit is contained in:
parent
596b3410db
commit
dd51c03985
@ -62,7 +62,7 @@ def exif_fix_image_orientation(im, exif_tags):
|
|||||||
6: 270,
|
6: 270,
|
||||||
8: 90}
|
8: 90}
|
||||||
orientation = exif_tags['Image Orientation'].values[0]
|
orientation = exif_tags['Image Orientation'].values[0]
|
||||||
if orientation in rotation_map.keys():
|
if orientation in rotation_map:
|
||||||
im = im.rotate(
|
im = im.rotate(
|
||||||
rotation_map[orientation])
|
rotation_map[orientation])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user