标签:targe ali tar resize img target width TE bsp
实现代码如下:
from PIL import ImageGrab img = Image.open(‘D:/tmp/4.jpg‘) # 获取图像的大小 print(img.size) # 获取图像 width print(img.size[0]) # 获取图像 height print(img.size[1]) img = img.resize((width, height),Image.ANTIALIAS)
标签:targe ali tar resize img target width TE bsp
原文地址:https://www.cnblogs.com/alex-bn-lee/p/9218900.html