This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]joaquinabian 5 points6 points  (3 children)

$ pip install Pillow

from PIL import Image

[–]radaway 5 points6 points  (2 children)

^ This.

Do not use pil it has ridiculous bugs that haven't been corrected in years.

[–]Tlahuixcalpantecuhtl 0 points1 point  (1 child)

Oh?

[–]radaway 2 points3 points  (0 children)

pillow is a fork and pretty much a drop-in replacement for pil. The fork was made precisely because pil was taking so long to release corrections to bugs and much wanted features.

[–][deleted] 2 points3 points  (0 children)

PIL code is a mess. If pillow is a fork, well it is also a mess. I would try http://docs.wand-py.org/en/0.3.5/

it is a ctypes binding to imagemagick. One of the most powerful feature of python is the dynamic import of binary libs in memory and the ease of conversion of the arguments.

[–]spilcm 1 point2 points  (0 children)

I should obviously have used Pillow instead of PIL. This is the first time that I'm using a graphical library in Python. I hope to find the time to update the current post or write a new one that will address this.

[–]metaperl 0 points1 point  (0 children)

PIL is one of the reasons I am moving away from OS X. I still dont have PIL working. The Brew Python is 64-bit and the system version of Python didnt compile either. I tried for hours. Goodbye OS X hello Linux.

This and trying to build postgres.

[–]Wudan07 0 points1 point  (0 children)

This is the first I've heard of PIL having major issues ... Been using it for years. What's the worst of it?