replace PIL.Image.ANTIALIAS with PIL.Image.LANCZOS, resolves #392

This commit is contained in:
meeb 2023-07-16 00:06:05 +10:00
parent 2ebbb8480e
commit 63d32a1e11
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ def resize_image_to_height(image, width, height):
if scaled_width < width: if scaled_width < width:
# Width too small, stretch it # Width too small, stretch it
scaled_width = width scaled_width = width
image = image.resize((scaled_width, height), Image.ANTIALIAS) image = image.resize((scaled_width, height), Image.LANCZOS)
if scaled_width > width: if scaled_width > width:
# Width too large, crop it # Width too large, crop it
delta = scaled_width - width delta = scaled_width - width