mkstemp、mktemp、TemporaryFile区别
python2.6.6控制台输出小数问题

pillow模块生成缩略图

妙音 posted @ 2015年3月26日 15:32 in python , 4674 阅读

python使用pillow模块生成缩略图

  • 安装
pip install Pillow
  • 示例
from PIL import Image

im = Image.open("logo.png")
im.thumbnail((32, 32))
im.save("thumbnail.png", "png")
pillow文档地址

 

 

Avatar_small
LEGEND SEO 说:
2020年12月31日 17:07

Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day! 1234movies


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter