Python Imaging Library (PIL)¶
Plone uses internally Python Imaging Library (PIL) for low level image manipulation and decoding.
This concerns only UNIXes as Windows installer comes with PIL binaries.
- PIL has libjpeg as a dependency and you need to install it using your operating system package manager. On OSX you can use macports.
- Make sure that you don't have PIL without libjpeg support in your system-wide Python setup
In late 2010, a packaging fork called Pillow was created to offer better multi-OS installation support. Specifically it offers:
- Setuptools compatibility
- Hosting (and mirroring) by PyPI (vs. off site)
- Windows eggs
- Bug fixes (many of which simply add vendor-specific library directories to the compiler's search path.)
As a result, PIL can now be installed on many more systems simply by using the "Pillow" package name. E.g.:
$ easy_install Pillow
$ pip install Pillow
Or add to the list of eggs in your Buildout.