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")