

Image moduleImageChops (“channel operations”) moduleImageCms moduleImageColor moduleImageDraw moduleImageEnhance moduleImageFile moduleImageFilter moduleImageFont moduleImageGrab moduleImageMath moduleImageMorph moduleImageOps moduleImagePalette moduleImagePath moduleImageQt moduleImageSequence moduleImageShow moduleImageStat moduleImageText moduleImageTk moduleImageTransform moduleImageWin module (Windows-only)ExifTags moduleTiffTags moduleJpegPresets modulePSDraw modulePixelAccess classfeatures moduleThePython Imaging Library adds image processing capabilities to yourPython interpreter.
This library provides extensive file format support, an efficient internalrepresentation, and fairly powerful image processing capabilities.
The core image library is designed for fast access to data stored in a fewbasic pixel formats. It should provide a solid foundation for a general imageprocessing tool.
Let’s look at a few possible uses of this library.
The Python Imaging Library is ideal for image archival and batch processingapplications. You can use the library to create thumbnails, convert betweenfile formats, print images, etc.
The current version identifies and reads a large number of formats. Writesupport is intentionally restricted to the most commonly used interchange andpresentation formats.
The current release includes TkPhotoImage andBitmapImage interfaces, as well as aWindowsDIBinterface that can be used with PythonWin and otherWindows-based toolkits. Many other GUI toolkits come with some kind of PILsupport.
For debugging, there’s also ashow() method which saves an image todisk, and calls an external display utility.
The library contains basic image processing functionality, including point operations, filtering with a set of built-in convolution kernels, and colour space conversions.
The library also supports image resizing, rotation and arbitrary affine transforms.
There’s a histogram method allowing you to pull some statistics out of an image. This can be used for automatic contrast enhancement, and for global statistical analysis.