Skip to content

Commit

Permalink
fix Pillow resize argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sumpfork committed Apr 8, 2024
1 parent 5f5d168 commit 8b6e55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/domdiv/draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 8b6e55d

Please sign in to comment.