[Image-SIG] save() question/bug

Fredrik Lundh fredrik at pythonware.com
Mon Sep 4 12:51:53 CEST 2006

"izak marais" wrote:

> What I had been doing was first using
> fp = open("test.bmp","w")

that opens the file in *text* mode, which, among other things, means that the
line feed character (chr(10)) is mapped to the native line ending on some plat-

to open a file for writing in binary mode, use open(filename, "wb").


More information about the Image-SIG mailing list