pythonware.com ::: library ::: Python Imaging Library Handbook (2003 Edition)

Back   Next

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

Back   Next