I hope you're having a good day. Let me show you the code first
from tkinter import *
from PIL import ImageTk, Image
with open(image_path, 'rb') as f:
img = f.read()
root=Tk()
image = ImageTk.PhotoImage(data=img)
my_label = Label(image=image)
my_label.pack()
root.mainloop()
As you can see, I am reading an image file in 'rb' mode and then using the lines of codes to display the image in a tkinter window. However, in this method, I just cannot resize the image(I can crop the image, but I need to resize it). Now, my question is, how do I change the size the image?
PS: I'm an extreme noob. Please pardon me if this question is too stupid