4.0.0

Python 2.6 and 3.2 Dropped

Pillow 4.0 no longer supports Python 2.6 and 3.2. We will not becreating binaries, testing, or retaining compatibility with thesereleases. This release removes some workarounds for those Pythonreleases, so the final working version of Pillow on 2.6 or 3.2 is 3.4.2.

Support added for Python 3.6

Pillow 4.0 supports Python 3.6.

OleFileIO.py

OleFileIO.py has been removed as a vendored file and is now installedfrom the upstream olefile pypi package. All internal dependencies areredirected to the olefile package. Direct accesses toPIL.OlefileIO raises a deprecation warning, then patches theupstream olefile into sys.modules in its place.

SGI image save

It is now possible to save images in modes L, RGB, andRGBA to the uncompressed SGI image format.

Zero sized images

Pillow 3.4.0 removed support for creating images with (0,0) size. Thishas been reenabled, restoring pre 3.4 behavior.

Internal handles_eof flag

The handles_eof flag for decoding images has been removed, as therewere no internal users of the flag. Anyone maintaining image decodersoutside of the Pillow source tree should consider using the cleanupfunction pointers instead.

Image.core.stretch removed

The stretch function on the core image object has been removed. Thisused to be for enlarging the image, but has been aliased to resizerecently.