We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The pilfile Utility

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).