Pythalex
8/22/2019 - 12:29 PM

Python - resize image

from PIL import Image

img = Image.open("image.jpg")

new_size = (50,50)
img.resize(size=new_size, resample=Image.BILINEAR)
img.save("image_new.jpg")