PIL resize

PIL resize

 

from PIL import Image

# Open the image
img = Image.open("20230222100736979.jpg")

# Resize the image
img = img.resize((img.width*2, img.height*2), resample=Image.BICUBIC)

# Save the modified image
img.save("20230222100736979_2.jpg")

  

 

#####################

posted @ 2023-04-23 21:06  西北逍遥  阅读(14)  评论(0编辑  收藏  举报