Skip to content

Commit

Permalink
matthewwithanm#59 updated processors.resize to use the Pillow LANCZOS…
Browse files Browse the repository at this point in the history
… method

- instead of the deprecated Pillow method ANTIALIAS in Pillow 10.
  • Loading branch information
Jochem Berends committed Jul 4, 2022
1 parent 09ffa2a commit 0f4251f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilkit/processors/resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, width, height, upscale=True):
def process(self, img):
if self.upscale or (self.width < img.size[0] and self.height < img.size[1]):
img = resolve_palette(img)
img = img.resize((self.width, self.height), Image.ANTIALIAS)
img = img.resize((self.width, self.height), Image.LANCZOS)
return img


Expand Down

0 comments on commit 0f4251f

Please sign in to comment.