replace PIL.Image.ANTIALIAS with PIL.Image.LANCZOS, resolves #392
This commit is contained in:
parent
2ebbb8480e
commit
63d32a1e11
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue