python 获取图片的尺寸宽高信息

# coding: utf8  
from PIL import Image  
img = Image.open("img.jpg") print img.size
print img.format



原文:https://www.cnblogs.com/zhangtianyuan/p/7306588.html
posted @ 2020-06-02 20:56  像阳光,像春天  阅读(4141)  评论(0编辑  收藏  举报