1、PIL读取图片:
img=PIL.Image.open('0.png')

2、查看img有哪些可以直接使用的方法:
txt=open('0.txt','w')
for i in dir(img):
txt.write(i+'\n')
print(i)

3、查看图片格式的方法是:
img.format

4、查看图片名称的方法是:
img.filename

5、查看图片的色彩空间:
img.mode
RGBA图像,是RGB图像配合alpha通道;
png格式的图像,一般都是RGBA模式。

6、具体的描述图片格式:
img.format_description
.
Portable network graphics的意思是便携式网络图形。

7、查看图像的尺寸:
img.size
这是一张高490宽633的图片,单位是像素。
