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. Advertisements

  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. Advertisements

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. Raaijmakers, Vincent (IndSys,GE Interlogix)

    PIL and jpg -> png conversion

    Raaijmakers, Vincent (IndSys,GE Interlogix), Nov 17, 2003, in forum: Python
    Replies:
    1
    Views:
    413
    Erik Max Francis
    Nov 17, 2003
  2. Raaijmakers, Vincent (IndSys,GE Interlogix)

    PIL, PNG and MIDP

    Raaijmakers, Vincent (IndSys,GE Interlogix), Nov 19, 2003, in forum: Python
    Replies:
    1
    Views:
    392
    Erik Max Francis
    Nov 19, 2003
  3. Raaijmakers, Vincent (IndSys,GE Interlogix)

    RE: PIL and jpg -> png conversion, do I really need java for this???

    Raaijmakers, Vincent (IndSys,GE Interlogix), Nov 19, 2003, in forum: Python
    Replies:
    3
    Views:
    431
    Tobias Pfeiffer
    Nov 20, 2003
  4. Raaijmakers, Vincent (IndSys,GE Interlogix)

    RE: PIL and jpg -> png conversion, do I really need java for this???

    Raaijmakers, Vincent (IndSys,GE Interlogix), Nov 20, 2003, in forum: Python
    Replies:
    1
    Views:
    456
  5. R.Marquez

    Transparent PNG and PIL

    R.Marquez, May 26, 2004, in forum: Python
    Replies:
    4
    Views:
    3,060
    R.Marquez
    May 28, 2004
  6. Replies:
    0
    Views:
    653
  7. Sverre
    Replies:
    2
    Views:
    4,278
    Sverre
    Dec 17, 2009
  8. tastyminerals

    PIL(Pillow) fails with PNG image

    tastyminerals, Dec 5, 2013, in forum: Python
    Replies:
    1
    Views:
    150
    John Gordon
    Dec 6, 2013
Loading...