PIL always raises "unrecognized image mode" exception with putdata()

Cousin Stanley CousinStanley at hotmail.com
Mon Feb 9 18:05:52 EST 2004


| ....
| im.save ('target_out.png', 'png')
| ....

Noah ....

  Try the image type in all-caps .... 

   im.save( 'targe_out.png' , 'PNG' )

  Also, you might try the Image save method 
  with just the filename and omit the type argument .... 

   im.save( 'target_out.png' )

  Unless you specify the format, the library 
  uses the filename extension to discover 
  which file storage format to use.

-- 
Cousin Stanley
Human Being
Phoenix, Arizona




More information about the Python-list mailing list