[Image-SIG] PIL newbie

Fredrik Lundh fredrik at pythonware.com
Thu Jun 7 19:35:57 CEST 2007


Anton Sherwood wrote:

> Hi, I'm attempting to use PIL for the first time,
> and getting all kinds of type errors.  Latest version:
> 
>    File "d1.py", line 50, in <module>
>      im.putdata(zz, 1.0, 0.0)  ## zz is a list of RGB tuples

what's im.mode ?

what's zz[:10] (the first ten entries in the list)

can you reproduce the error with a minimal test program?  e.g. something 
like

      im = Image.new(..., (2, 2))
      im.putdata([...], 1.0, 0.0)

where ... is a mode and data that matches what you're using when you got 
that error?

</F>



More information about the Image-SIG mailing list