📜  python tkinter 获取图像大小 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.487000             🧑  作者: Mango

代码示例1
img = Image.open("path\\to\\image.jpg")
tkimage = ImageTk.PhotoImage(img)

h = tkimage.height()
w = tkimage.width()
print(h)
print(w)