img = Image.open("path oimage.jpg") tkimage = ImageTk.PhotoImage(img) h = tkimage.height() w = tkimage.width() print(h) print(w)