Problem importing PIL image library
I am trying to do something with the PIL image library in django but I am having some problems.
I like the following:
import Image
And then I like it
images = map(Image.open, glob.glob(os.path.join(dirpath, '*.thumb.jpg')))
But when I try to run this I get an error and it seems to me that it is not imported correctly, does anyone know?
type object 'Image' has no attribute 'open'
0
source to share
2 answers