[preview] Preserve aspect ratio while scaling
This commit is contained in:
@@ -74,6 +74,7 @@ def extract_and_resize_frames(mem, resize_to):
|
||||
|
||||
new_frame.paste(image, (0, 0), image.convert('RGBA'))
|
||||
|
||||
# This method preservs aspect ratio
|
||||
new_frame.thumbnail(resize_to, Image.ANTIALIAS)
|
||||
frames.append(new_frame)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user