[Image-SIG] PIL code not working

Yury V. Zaytsev yury at shurup.com
Fri Oct 1 09:56:56 CEST 2010


im.getpixel( (5, 7) )

?

On Fri, 2010-09-24 at 10:32 +0900, majoris.ursae at yahoo.co.uk wrote:
> Hello everybody, Greetings!
> In PIL, the following codes does not work anymore:
> im.getpixel(5,7)
> list(im.getdata())
> Does anyone knows what is wrong below and kindly suggest new codes?
> >>> from PIL import Image
> >>> im = Image.open('E://test.jpg')
> >>> im.load()
> >>> im.getpixel (5,7)
> Traceback (most recent call last):
>   File "<pyshell#3>", line 1, in <module>
>     im.getpixel(4,6)
> TypeError: getpixel() takes exactly 2 arguments (3 given)
> >>> list(im.getdata())
> no response for one day!
> Thank you so much!!





More information about the Image-SIG mailing list