more fixes
This commit is contained in:
parent
74a010e82a
commit
102c7a2b94
@ -34,9 +34,9 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width):
|
||||
if orientation == 3:
|
||||
img = img.rotate(180, expand=True)
|
||||
elif orientation == 6:
|
||||
img = img.rotate(270, expand=True)
|
||||
img = img.rotate(0, expand=True)
|
||||
elif orientation == 8:
|
||||
img = img.rotate(270, expand=True)
|
||||
img = img.rotate(180, expand=True)
|
||||
except (AttributeError, KeyError, IndexError):
|
||||
# cases: image don't have getexif
|
||||
exif = b""
|
||||
|
Loading…
x
Reference in New Issue
Block a user