more fixes
This commit is contained in:
parent
2605f7db37
commit
f12247b0b1
@ -33,9 +33,9 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width):
|
|||||||
if orientation == 3:
|
if orientation == 3:
|
||||||
img = img.rotate(180, expand=True)
|
img = img.rotate(180, expand=True)
|
||||||
elif orientation == 6:
|
elif orientation == 6:
|
||||||
img = img.rotate(90, expand=True)
|
img = img.rotate(270, expand=True)
|
||||||
elif orientation == 8:
|
elif orientation == 8:
|
||||||
img = img.rotate(90, expand=True)
|
img = img.rotate(270 expand=True)
|
||||||
except (AttributeError, KeyError, IndexError):
|
except (AttributeError, KeyError, IndexError):
|
||||||
# cases: image don't have getexif
|
# cases: image don't have getexif
|
||||||
exif = {}
|
exif = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user