Skip to content

Commit

Permalink
matthewwithanm#58 updated image deprecations for Pillow 10
Browse files Browse the repository at this point in the history
- according to https://pillow.readthedocs.io/en/stable/deprecations.html
- `Image.ANTIALIAS` -> `Image.Resampling.LANCZOS`
  • Loading branch information
Jochem Berends committed Jul 4, 2022
1 parent 0f4251f commit 6a4b910
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.LANCZOS)
img = img.resize((self.width, self.height), Image.Resampling.LANCZOS)
return img


Expand Down

0 comments on commit 6a4b910

Please sign in to comment.