Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

IOError: encoder error -2 when writing image file

By
Leo Guggenberger
on 8/13/15, 9:03 AM 619 views

If I whant to upload a picture in the website with using the button "Upload an image from your computer" I get the error message "IOError: encoder error -2 when writing image file".

The full log looks like follows:

2015-08-13 12:08:05,549 3867 ERROR feuerwehr openerp.addons.website.controllers.main: Failed to upload image to attachment

Traceback (most recent call last):

File "/usr/local/openerp/server/openerp/addons/website/controllers/main.py", line 342, in attach
image_data = image_save_for_web(image)
File "/usr/local/openerp/server/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 1439, in save
save_handler(self, fp, filename)
File "/usr/lib/python2.7/dist-packages/PIL/JpegImagePlugin.py", line 471, 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

The python pillow version 2.9.0 is installed.

What do I have to do to solve this issue?

Thanks a lot!

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/13/15, 9:03 AM
Seen: 619 times
Last updated: 8/13/15, 9:05 AM