Skip to content Skip to sidebar Skip to footer

Pillow Not Loading Image -cannot Identify Image File

What's wrong with the following snippet? It's not related to the image format, I tried both with jpg and png. import Image from cStringIO import StringIO with open('/path/to/file/

Solution 1:

The problem was in the mutual presence of the PIL and Pillow library on the machine:

# pip freeze | grep -E '(Pillow|PIL)'PIL==1.1.7Pillow==2.1.0

Solution 2:

I solved this by using

fromPILimportImage

instead of just doing

import Image

Post a Comment for "Pillow Not Loading Image -cannot Identify Image File"