图片剪裁

from PIL import Image

def crop_image(path, cropped_path):
    image = Image.open(path)
    cropped = image.crop((560, 460, 4040, 6100))
    cropped.save(cropped_path)

crop_image(r'images\90.png', r'pic\90.png')

posted on 2024-01-30 11:16  耀扬  阅读(4)  评论(0编辑  收藏  举报

导航