📜  python枕头将图像切成两半 - Python代码示例

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

代码示例1
from PIL import Image

original = Image.open(test_image)

width, height = original.size

wid = int(width / 2)

img = original.crop((0, 0, wid, height))

img.show()