[Image-SIG] PIL: Can't open saved BMP image

Sheila King sheila at thinkspot.net
Mon Aug 4 12:46:59 EDT 2003


--On Monday, August 04, 2003 11:06 AM -0700 Sheila King
<sheila at thinkspot.net> wrote:

> 
> graph.save(open("graphout2.bmp", "w"))
> 

OK, I appear to have found the problem:

NEED TO SAVE IN BINARY MODE.

should be:

graph.save(open("graphout2.bmp", "wb"))

Sorry for bothering y'all for something this ditzy. :/





More information about the Image-SIG mailing list