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":