from PIL import Image
img = Image.open("bucky.jpg")
area = (100, 100, 300, 375)
cropped_img = img.crop(area) # crop out an area (upper left, lower right)
cropped_img.show()
from PIL import Image
img = Image.open("bucky.jpg")
area = (100, 100, 300, 375)
cropped_img = img.crop(area) # crop out an area (upper left, lower right)
cropped_img.show()
本文标题:Python 43 Programming Tutorial
本文链接:https://www.haomeiwen.com/subject/dxzxettx.html
网友评论