Python Imaging Library Handbook |
The pilfile tool identifies image files, showing the file format, size, and mode for every image it can identify.
$ pilfile *.tif lena.tif: TIFF 128x128 RGB
Use the -i option to display the info attribute. Use the -t option to display the tile descriptor (which contains information used to load the image).