Dynamic image creation for the web...

2005-08-28 Thread Tompa
create_image.py: from PIL import Image, ImageDraw, ImageFont im = Image.new(P, (600, 400)) draw = ImageDraw.Draw(im) draw.rectangle((0, 0) + im.size, fill=blue) Unfortunately this does not work :-( What is missing? Thanks in advance! /Tompa -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic image creation for the web...

2005-08-28 Thread Tompa
) But this does not work. I also tested to skip the HTTP-header stuff and just write the gif to sys.stdout, believing that that would work. But not so... Hmm, I'm a newbie to Python (as you already probably have noticed ;-) so I don't know what else I should try. Any hints are welcome! /Tompa -- http

Re: Dynamic image creation for the web...

2005-08-28 Thread Tompa
('Content-type: image/gif\r\n') sys.stdout.write('\r\n') im.save(sys.stdout, GIF) But it does not work for some reason!? Besides, I was hoping for a solution which could skip the HTTP-header related stuff... Regards, /Tompa -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic image creation for the web...

2005-08-28 Thread Tompa
- thanks! Regards, /Tompa -- http://mail.python.org/mailman/listinfo/python-list