I get a similar problem with the following complete program:

    import Image
    i = Image.fromstring("RGB", (1, 1), chr(255) * 3)
    j = i.convert("P")
    print j.getpixel((0,0))  # prints 252, should print 255

This seems to have something to do with converting to a palette image.

Jeff

Attachment: pgp42Dx9zfS58.pgp
Description: PGP signature

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to