Re: PIL Image can't open png file with "I"?

2005-10-08 Thread Fredrik Lundh
"James Hu" wrote: > I have png file with mode "I", 16 bit, > And I tried to open it with im=Image.open("output.png"), im.show() > I got all white image. > Don't why? because all of the PNG file are larger than 255 ? show doesn't support 16-bit images, so it clamps the values down to an 8-bit ran

Re: PIL Image can't open png file with "I"?

2005-10-07 Thread Do Re Mi chel La Si Do
Hi ! Perhaps... ";" better than "," : im=Image.open(r"C:\vodka3.png"); im.show() Perhaps... more simplist : im=Image.open(r"C:\vodka3.png").show() Perhaps... other thing ? @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

PIL Image can't open png file with "I"?

2005-10-07 Thread James Hu
Hi, I have png file with mode "I", 16 bit, And I tried to open it with im=Image.open("output.png"), im.show() I got all white image. Don't why? Can Image only support 'RGB' or 'RGBA' png files? Thanks James -- http://mail.python.org/mailman/listinfo/python-list