[Image-SIG] IOError: encoder error -2 when writing image file
Lipeng Wan
lipengwan86 at gmail.com
Wed Sep 26 19:51:09 CEST 2012
Hi guys,
When I try to save the image, I always get this error:
img.save(jpeg,'JPEG')
File "D:\Program Files\Python27\lib\site-packages\PIL\Image.py", line
1439, in save
save_handler(self, fp, filename)
File "D:\Program
Files\Python27\lib\site-packages\PIL\JpegImagePlugin.py", line 471, in _save
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)])
File "D:\Program Files\Python27\lib\site-packages\PIL\ImageFile.py", line
501, in _save
raise IOError("encoder error %d when writing image file" % s)
IOError: encoder error -2 when writing image file
Is there anyone who can help me solve this problem? Thanks.
Lipeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20120926/d8e164e6/attachment-0001.html>
More information about the Image-SIG
mailing list