📜  python图像处理 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:19.953000             🧑  作者: Mango

代码示例3
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)