📜  使用 python 进行图像处理和调整大小 - 任何代码示例

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

代码示例3
image = Image.open('demo_image.jpg')
logo = Image.open('logo.png')
image_copy = image.copy()
position = ((image_copy.width - logo.width), (image_copy.height - logo.height))
image_copy.paste(logo, position)
image_copy.save('pasted_image.jpg')