Re: A PIL Question

2005-08-14 Thread Cyril Bazin
Try Image.new in place of Image.Image if you want to build a new image. At which level are you? CyrilOn 14 Aug 2005 10:34:38 -0700, Ray <[EMAIL PROTECTED]> wrote: Hello,I'm using latest PIL version with Python 2.4.1. (for solving a level inPython Challenge actually...). Anyway, I'm trying to draw

Re: A PIL Question

2005-08-14 Thread Max Erickson
"Ray" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > image = Image.Image() > > Anybody has any idea why this is the case? > Image.Image() isn't the way to get a new image object in PIL. Try Image.new(), which needs at least mode and size arguments. You can get those from your ori

Re: A PIL Question

2005-08-14 Thread Terry Hancock
On Sunday 14 August 2005 12:34 pm, Ray wrote: > import Image > > im = Image.open("something.jpg") > seq = im.getdata() > > image = Image.Image() > image.putdata(seq) > > image.show() > > I always get: > > Traceback (most recent call last): > File "Script1.py", line 31, in ? > image.putda

A PIL Question

2005-08-14 Thread Ray
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("something.jpg") seq = im.getdata() image =