Skip to content Skip to sidebar Skip to footer

How To Fit Image To Label In Python

So in python i have a Label that I'm using to display images. But the images are rather large and they exceed the size of the label. Is there a way to load the images to fit the la

Solution 1:

try:

im = im.resize(maxsize)

instead of:

im.thumbnail(maxsize, Image.ANTIALIAS)

Post a Comment for "How To Fit Image To Label In Python"