Hello,
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:
import Image
im = Image.open("som ething.jpg")
seq = im.getdata()
image = Image.Image()
image.putdata(s eq)
image.show()
I always get:
Traceback (most recent call last):
File "Script1.py ", line 31, in ?
image.putdata(s eq)
File "D:\Development \Python24\Lib\s ite-packages\PIL\Im age.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?
Thanks,
Ray
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:
import Image
im = Image.open("som ething.jpg")
seq = im.getdata()
image = Image.Image()
image.putdata(s eq)
image.show()
I always get:
Traceback (most recent call last):
File "Script1.py ", line 31, in ?
image.putdata(s eq)
File "D:\Development \Python24\Lib\s ite-packages\PIL\Im age.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?
Thanks,
Ray
Comment