Problems with ImageDraw
Amit Keney
amit at darya.nio.org
Wed May 21 03:20:25 EDT 2003
Hi all,
I have installed PIL 1.1.4 on the a IRIX 6.5 machine. i am running
the python 2.1 interpreter. I am totally new to python and I am using
it to write CGI scripts. I have a gif Image on which I want to draw
some lines ( like a cross hair) on the fly. I tried the following
piece of code from the PIL handbook..
import Image,ImageDraw
im = Image.open("pic.gif")
print im.format, im.size, im.mode
draw = ImageDraw.Draw(im)
draw.line((0,0)+im.size)
del draw
im.save(sys.stdout,"GIF")
but the script core dumps at the line 'draw.line((0,0)+im.size)'
please can anyone guide me as to why this is happening..
also is there any other way in which i can do this
thanking you all in advance
--Amit--
More information about the Python-list
mailing list