切图片
from PIL import Image
def cut_picture(picture_url):
"""
切图片
:param picture_url: 图片地址
:return:
"""
img = Image.open(picture_url)
long, wide = img.size
cropped = img.crop((0, 0, long, wide - 30)) # (left, upper, right, lower)
cropped.save(picture_url)
return picture_url
print(cut_picture('haoge.jpg'))