Skip to content

Commit

Permalink
Update deprecated Pillow constant
Browse files Browse the repository at this point in the history
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
  • Loading branch information
havardAasen committed Jan 3, 2024
1 parent f7187cc commit 9051a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emc/usr_intf/axis/scripts/image-to-gcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9051a94

Please sign in to comment.