Skip to content

Commit

Permalink
Merge pull request LinuxCNC#2828 from havardAasen/deprecated-pil-command
Browse files Browse the repository at this point in the history
Update deprecated Pillow constant
  • Loading branch information
andypugh authored Jan 7, 2024
2 parents 7f088d8 + 9051a94 commit 675988d
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 675988d

Please sign in to comment.