From 63d32a1e11403fb7bd0c41df5595bb347731dcc7 Mon Sep 17 00:00:00 2001 From: meeb Date: Sun, 16 Jul 2023 00:06:05 +1000 Subject: [PATCH] replace PIL.Image.ANTIALIAS with PIL.Image.LANCZOS, resolves #392 --- tubesync/sync/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubesync/sync/utils.py b/tubesync/sync/utils.py index dcf1e2f..f53c539 100644 --- a/tubesync/sync/utils.py +++ b/tubesync/sync/utils.py @@ -78,7 +78,7 @@ def resize_image_to_height(image, width, height): if scaled_width < width: # Width too small, stretch it scaled_width = width - image = image.resize((scaled_width, height), Image.ANTIALIAS) + image = image.resize((scaled_width, height), Image.LANCZOS) if scaled_width > width: # Width too large, crop it delta = scaled_width - width