more fixes
This commit is contained in:
parent
23ce3be362
commit
74a010e82a
@ -39,7 +39,7 @@ def generate_thumbnail(image_path, resize_percent, min_width, max_width):
|
|||||||
img = img.rotate(270, 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 = b""
|
||||||
|
|
||||||
# Save the thumbnail to a BytesIO object
|
# Save the thumbnail to a BytesIO object
|
||||||
thumbnail_io = BytesIO()
|
thumbnail_io = BytesIO()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user