The Python Imaging Library |
![]() |
|
Copyright © 1997 by Fredrik Lundh <fredrik@pythonware.com> | ||
Updated 17 Aug 1997 |
< Tutorial | Utilities | Support >
This version of the Python Imaging Library includes a small set of utility programs. They are all to be considered as experimental. Also see the demo scripts in the Scripts directory.
This utility 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 member. Use the -t option to display the tile descriptor (which contains information used to control decoding).
Convert an image from one format to another. The output format is determined by the target extension, unless explicitly specified with the -c option.
$ pilconvert lena.tif lena.png lena.png... $ pilconvert -c JPEG lena.tif lena.tmp
Print an image to any PostScript level 1 printer. The image is centred on the page, with the filename (minus path and extension) written above it. Output is written to standard output.
$ pilprint lena.tif | lpr -h
You can use the -p option to print directly via lpr(1) and -c to print to a colour printer (otherwise, a colour image is translated to greyscale before being sent to the printer).