Dynamic resizing of image using PIL and tkinter
问题 I wanted to know if it was possible to resize the image dynamically(maintaining its aspect ratio). I made an image viewer app, but then the vertically long images overflow the screen, so i wanted to know a method to resize image, ive tried a way and its included below. But still im getting the same output that overflows the screen. from win32api import GetSystemMetrics from tkinter import * screen_width, screen_height = GetSystemMetrics(0), GetSystemMetrics(1) root = Tk() # this is your