Last active
August 29, 2015 14:21
-
-
Save imjaypatel/149359ce3382168f64b8 to your computer and use it in GitHub Desktop.
Suspension not allowed here: IOError: encoder error -2 when writing image file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import ImageFile | |
ImageFile.MAXBLOCK = max(image.size) ** 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Suspension not allowed here | |
2015-05-12 12:59:00,763 28865 ERROR hr openerp.addons.website.controllers.main: Failed to upload image to attachment | |
Traceback (most recent call last): | |
File "/home/jpa/odoo/master-old-hr/addons/website/controllers/main.py", line 321, in attach | |
image_data = image_save_for_web(image) | |
File "/home/jpa/odoo/master-old-hr/openerp/tools/image.py", line 141, in image_save_for_web | |
image.save(img, **opt) | |
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1442, in save | |
save_handler(self, fp, filename) | |
File "/usr/lib/python2.7/dist-packages/PIL/JpegImagePlugin.py", line 475, in _save | |
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, rawmode)]) | |
File "/usr/lib/python2.7/dist-packages/PIL/ImageFile.py", line 491, in _save | |
raise IOError("encoder error %d when writing image file" % s) | |
IOError: encoder error -2 when writing image file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment