Skip to content

Commit

Permalink
Change deprecated ANTIALIAS to LANCZOS
Browse files Browse the repository at this point in the history
ANTIALIAS — not working 10+
LANCZOS — working since 2.6

Fix #64
  • Loading branch information
ademaro authored and xrmx committed Sep 26, 2023
1 parent 7d2f2f1 commit 05d9f48
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 05d9f48

Please sign in to comment.