2009/3/25 Bryan Jeal <br...@hideawaystudios.com>:
> Here is an update:
>
> 1.
> I removed Python and PIL from the system and reinstalled them (for PIL I
> used PIL-1.1.6.win32-py2.5.exe); however, it isn't working correctly...

I'm not sure why you think you need to open the output file yourself,
but if you do, you need to tell Python that it's a binary file.
Changing

    tmpFile = open('C:/temp/temp_win.jpg', 'w')

to

    tmpFile = open('C:/temp/temp_win.jpg', 'wb')

or, easier, changing the save call to

    im.save("c/temp/temp_win.jpg", 'JPEG', quality=90)

will fix this.

</F>
_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to