image = Image.open('demo_image.jpg') new_image = image.resize((400, 400)) new_image.save('image_400.jpg') print(image.size) # Output: (1920, 1280) print(new_image.size) # Output: (400, 400)