This library provides extensive file format support, an efficient internal representation, and fairly powerful image processing capabilities.
The core image library is designed for fast access to data stored in a few basic pixel formats. It should provide a solid foundation for a general image processing tool.
The Python Imaging Library is ideal for image archival and batch processing applications. You can use the library to create thumbnails, convert between file formats, print images, etc.
The current version identifies and reads a large number of formats. Write support is intentionally restricted to the most commonly used interchange and presentation formats.
The current release includes Tk PhotoImage and BitmapImage interfaces, as well as a Windows DIB interface that can be used with PythonWin and other Windows-based toolkits. Many other GUI toolkits come with some kind of PIL support.
For debugging, there’s also a show() method which saves an image to disk, 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.
|Operating system||Tested Python versions||Tested Architecture|
|Mac OS X 10.10 Yosemite*||2.7, 3.4, 3.5, 3.6||x86-64|
|Ubuntu Linux 16.04 LTS||2.7||x86-64|
|Ubuntu Linux 14.04 LTS||2.7, 3.4, 3.5, 3.6, pypy, pypy3||x86-64|
|Windows Server 2012 R2||2.7, 3.4||x86, x86-64|