[Image-SIG] ANN: PIL 1.2 pre-alpha (January 8, 2011)

Fredrik Lundh fredrik at pythonware.com
Sat Jan 8 02:41:39 CET 2011

A pre-alpha snapshot of the upcoming PIL 1.2 release is now available from:


or via Mercurial, from https://bitbucket.org/effbot/pil-2009-raclette

I've decided to abandon the planned 1.1.8 release, including the rough
and still unreleased 3.X port of 1.1.7+. Instead, the new plan is to
provide a single code base for both Python 2.X and 3.X, and most of
the changes in 1.2 will affect internal architecture and packaging
only (I do have some very interesting contributions that are pending
integration, though).  Support for very old versions have been
dropped, and so has the support for importing from the standard
namespace; PIL now lives in the PIL namespace only.  Some
long-deprecated methods have also been removed, but everything else
should work as usual.

The source kit has been built and tested with Python 2.3, 2.4, 2.5,
2.6, and 2.7.  It also builds under Python 3.1 and 3.2 beta, even if
the functionality is currently *very* limited under Python 3.X.


$ tar xvfz PIL-1.2a0-20110108.tar.gz
$ cd PIL-1.2a0/
$ python3 setup.py install --prefix .
$ cd lib/python3.1/site-packages/
$ python3
Python 3.1.2 (r312:79147, Apr 15 2010, 15:35:48)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> im = Image.open("../../../Images/lena.png")
>>> im
<PIL.PngImagePlugin.PngImageFile image mode=RGB size=128x128 at 0xE6B1D0>
>>> im.load() # only works under 2.X in this release

More information about the Image-SIG mailing list