change size of image tkinter code example
Example 1: how to rezize image in python tkinter
from tkinter import *
from PIL import ImageTk, Image
root=Tk()
image = Image.open('path_to_your_image.png')
image = image.resize((450, 350), Image.ANTIALIAS)
my_img = ImageTk.PhotoImage(image)
my_img = Label(image = my_img)
my_img.pack()
root.mainloop()
Example 2: 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)