[Python] python通过pil生成缩略图的简单代码 →→→→→进入此内容的聊天室

来自 , 2019-05-08, 写在 Python, 查看 110 次.
URL http://www.code666.cn/view/86a1fa88
  1. from PIL import Image
  2. img = Image.open('sharejs.jpg')
  3. img = img.resize((250, 156), Image.ANTIALIAS)
  4. img.save('sharejs_small.jpg')

回复 "python通过pil生成缩略图的简单代码"

这儿你可以回复上面这条便签

captcha