ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
Re: [Image-SIG] PIL: Can't open saved BMP image
by Sheila King other posts by this author
Aug 4 2003 6:46PM messages near this date
[Image-SIG] PIL: Can't open saved BMP image | [Image-SIG] PATCH: Group 4 TIFF compression support
--On Monday, August 04, 2003 11:06 AM -0700 Sheila King
<sheila@[...].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. :/



_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Sheila King
Sheila King

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved