This is correct, windows makes a distinction between text and binary files, and linux does not, I have had quite a bit of trouble in that regard, especially as I switched from linux to windows. Edward
On Wed, Mar 25, 2009 at 8:38 AM, Fredrik Lundh <fred...@pythonware.com> wrote: > 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-...@python.org > http://mail.python.org/mailman/listinfo/image-sig > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig