From 8b6e55d5c5f5638834f37eaa4e63fa4c2e33ed70 Mon Sep 17 00:00:00 2001 From: Peter Gorniak Date: Mon, 8 Apr 2024 14:13:42 -0700 Subject: [PATCH] fix Pillow resize argument --- src/domdiv/draw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domdiv/draw.py b/src/domdiv/draw.py index ffa09352..dfe7090b 100644 --- a/src/domdiv/draw.py +++ b/src/domdiv/draw.py @@ -1475,7 +1475,7 @@ def prepArtwork(image, w, h, resolution, opacity): hmax = round(h * resolution / 72) wnew = min(imgObj.width, wmax) hnew = min(imgObj.height, hmax) - imgObj = imgObj.resize((wnew, hnew), Image.ANTIALIAS) + imgObj = imgObj.resize((wnew, hnew), Image.Resampling.LANCZOS) if opacity != 1.0: # Set image opacity. if imgObj.mode != "RGBA":