Skip to content

Commit

Permalink
PIL.Image.ANTIALIAS constant was removed in pillow 10.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
malled2002 committed Oct 2, 2024
1 parent 7f48d40 commit 014e55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drinks_touch/screens/new_id_screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def generate_receipt(euro, code_img):
img = Image.new("L", (width, height), "white")
# code_img = code_img.transpose(Image.ROTATE_90)
code_img = code_img.resize(
(int(width * 1.13), int(height * 0.5)), Image.ANTIALIAS
(int(width * 1.13), int(height * 0.5)), Image.LANZOS
)
# code_img = code_img.resize((int(width * 0.5), int(height * 1.0)), Image.ANTIALIAS)
# img.paste(code_img, (int(0.4*width), int(0.0*height)))
Expand Down

0 comments on commit 014e55b

Please sign in to comment.