Python Pillow (PIL) examples

About this site

This site provides the simple examples of Pillow, mainly for the users, not for plugin-users. Note that this site is unofficial, and the contents are written by only one person (it’s me). So, there might be incompleteness. And I’m not a native English speaker, so my English might be strange, sorry.

Note

From wikipedia:

Python Imaging Library (abbreviated as PIL) (in newer versions known as Pillow) is a free library for the Python programming language that adds support for opening, manipulating, and saving many different image file formats. It is available for Windows, Mac OS X and Linux. The latest version of PIL is 1.1.7, was released in September 2009 and supports Python 1.5.2-2.7, with Python 3 support to be released “later”.

Development appears to be discontinued with the last commit to the PIL repository coming in 2011. Consequently, a successor project called Pillow has forked the PIL repository and added Python 3.x support. This fork has been adopted as a replacement for the original PIL in Linux distributions including Debian and Ubuntu (since 13.04).

The examples in this documents are basically for Pillow, not original PIL. So, if you need to run the codes for original PIL, see Porting.

Table of Contents

Other documents I’m writing