Answers for "python tkinter get image size"

0

python tkinter get image size

img = Image.open("path\\to\\image.jpg")
tkimage = ImageTk.PhotoImage(img)

h = tkimage.height()
w = tkimage.width()
print(h)
print(w)
Posted by: Guest on October-02-2020

Python Answers by Framework

Browse Popular Code Answers by Language