# coding: utf8 from PIL import Image img = Image.open("img.jpg") print img.sizeprint img.format 原文:https://www.cnblogs.com/zhangtianyuan/p/7306588.html