[Image-SIG] save() question/bug
izak marais
izakmarais at yahoo.com
Mon Sep 4 08:59:36 CEST 2006
Thanks for the reply Frederik
What I had been doing was first using
fp = open("test.bmp","w")
im.save(fp, "BMP")
fp.close()
This caused the image to save skew. Just using a string in the argument to save instead of a filepointer works. I thought you had to use a file pointer since the function definition is:
im.save(self, fp, format = None, **params)
Cheers!
---------------------------------
All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/image-sig/attachments/20060903/e9dd4932/attachment.htm
More information about the Image-SIG
mailing list