A PIL Question
ray_usenet at yahoo.com
Sun Aug 14 19:34:38 CEST 2005
I'm using latest PIL version with Python 2.4.1. (for solving a level in
Python Challenge actually...). Anyway, I'm trying to draw a picture. My
question is, why is it that putdata() won't work? Even this won't run:
im = Image.open("something.jpg")
seq = im.getdata()
image = Image.Image()
I always get:
Traceback (most recent call last):
File "Script1.py", line 31, in ?
File "D:\Development\Python24\Lib\site-packages\PIL\Image.py", line
1120, in putdata
self.im.putdata(data, scale, offset)
AttributeError: 'NoneType' object has no attribute 'putdata'
Anybody has any idea why this is the case?
More information about the Python-list