From XPUB & Lens-Based wiki

Python Image Library (PIL)

Python library to manipulate and create images. Comparable to ImageMagick (though less features), or GD in PHP (though with more features).


In gentoo, you can simple emerge "imaging" (yes, imaging!).

For mac/win, you can try either a pre-built binary (mac), (windows), or install from source.

Examples of the PIL in action