Python Image Lib Problems

Mark Conway Wirt mark at intrepid.net
Fri Dec 17 16:05:27 EST 1999


In article <slrn85isnb.ls8.mark at elvis.intrepid.net>, Mark Conway Wirt wrote:
>I've recently build the Python Imaging Library (PIL) and installed it,
>but I'm having problems actually getting it to work.  The examples
>from the documentation  -- even the simple ones -- produce copious
>errors.  For example:
>
>>>> import Image
>>>> im = Image.open("lena.ppm")
>>>> im.show()

I'll answer my own question on this one.  Apparently this is a problem
in the library for some people.  I found a patch in the imaging SIG
that will supposedly fix this (haven't applied it yet).

>>>> draw = ImageDraw.Draw(im)
>>>> draw.line((0,0), im.size, fill=128)
>Traceback (innermost last):
>  File "<stdin>", line 1, in ?
>TypeError: keyword parameter redefined
>>>> 

...and this one is a problem with the documentation -- line takes
one tuple as input, as opposed to what is shown in the docs.

So, I've answered two of my questions -- I'll ask a new one:  Does
anyone know of any updated documentation on the PIL library?  It'll
be difficult to use without it, especially considering that I've
only been programming in Python for about a week, and it'll be hard
to separate my mistakes from the documentation mistakes.

TIA.

--Mark



More information about the Python-list mailing list