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

Discussion in 'Python' started by James Hu, Oct 7, 2005.

  1. James Hu

    James Hu Guest

    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
    James Hu, Oct 7, 2005
    #1
    1. Advertising

  2. 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
    Do Re Mi chel La Si Do, Oct 8, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Fredrik Lundh

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

    Fredrik Lundh, Oct 8, 2005, in forum: Python
    Replies:
    0
    Views:
    445
    Fredrik Lundh
    Oct 8, 2005
  2. Replies:
    0
    Views:
    458
  3. Sverre
    Replies:
    2
    Views:
    3,516
    Sverre
    Dec 17, 2009
  4. tastyminerals

    PIL(Pillow) fails with PNG image

    tastyminerals, Dec 5, 2013, in forum: Python
    Replies:
    1
    Views:
    81
    John Gordon
    Dec 6, 2013
  5. Terry Reedy

    Re: PIL(Pillow) fails with PNG image

    Terry Reedy, Dec 6, 2013, in forum: Python
    Replies:
    0
    Views:
    82
    Terry Reedy
    Dec 6, 2013
Loading...

Share This Page