From 9051a94cf490359c1d2a1b7643da9ff79eb6ab97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20F=2E=20Aasen?= Date: Wed, 3 Jan 2024 09:50:42 +0100 Subject: [PATCH] Update deprecated Pillow constant The substituted constant, ANTIALIAS, was removed in Pillow 10.0.0. The LANCZOS constant was introduced in Pillow 2.7.0. https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants --- src/emc/usr_intf/axis/scripts/image-to-gcode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emc/usr_intf/axis/scripts/image-to-gcode.py b/src/emc/usr_intf/axis/scripts/image-to-gcode.py index c86e318f350..db43e691cd3 100644 --- a/src/emc/usr_intf/axis/scripts/image-to-gcode.py +++ b/src/emc/usr_intf/axis/scripts/image-to-gcode.py @@ -519,7 +519,7 @@ def ui(im, nim, im_name): nw = int(w / max(r1, r2)) nh = int(h / max(r1, r2)) - ui_image = im.resize((nw,nh), Image.ANTIALIAS) + ui_image = im.resize((nw,nh), Image.LANCZOS) ui_image = ImageTk.PhotoImage(ui_image, master = app) i = tkinter.Label(app, image=ui_image, compound="top", text=_("Image size: %(w)d x %(h)d pixels\n"