How do I resize this image using tkinter? How do I resize this image using tkinter? tkinter tkinter

How do I resize this image using tkinter?


You need to pass size as a tuple. So it would look like this:

iimage = ImageTk.PhotoImage(img.resize((50,50), Image.ANTIALIAS))


I Suggest you use PhotoImage and SubSample like:

Example = PhotoImage(file='photo.png')

then subsampling like:

Example = Example.subsample(2, 2)

total Code:

Example = PhotoImage(file='Photo.png')Example = Example.subsample(3, 3)

In Summery:You Wont Be Needed To Import Any Special Type of Libarys And Can Be Used On Any python3 IDE's