您可以使用PIL图像的“搜索”方法来访问tif的不同页面(或动画gif的帧)。
from PIL import Image
img = Image.open('multipage.tif')
for i in range(4):
try:
img.seek(i)
print img.getpixel( (0, 0))
except EOFError:
# Not enough frames in img
break