Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

How to upload jpg images

Subscriure's

Get notified when there's activity on this post

This question has been flagged
attachuploadaws
3 Respostes
12193 Vistes
Avatar
soo

I host openerp on a aws server to try. When I upload images to products/customer/employee, only .png files are accepted. When I tried to upload a jpg file, errors as follow appeared.

Did I miss out setting the apps to accept jpg? I even go thru python lib and trace back to check necessary files, JpegImagePlugin.py are in the system.

I had tried several methods still cannot get the problem solved.


Client Traceback (most recent call last):
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/http.py", line 203, in dispatch
    response["result"] = method(self, **self.params)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/controllers/main.py", line 1117, in call_kw
    return self._call_kw(req, model, method, args, kwargs)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/controllers/main.py", line 1109, in _call_kw
    return getattr(req.session.model(model), method)(*args, **kwargs)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/session.py", line 43, in proxy
    result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/session.py", line 31, in proxy_method
    result = self.session.send(self.service_name, method, *args)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/session.py", line 104, in send
    raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)


Server Traceback (most recent call last):
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/web/session.py", line 90, in send
    return openerp.netsvc.dispatch_rpc(service_name, method, args)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/netsvc.py", line 293, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/mail/mail_thread.py", line 242, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/orm.py", line 4469, in create
    result += self._columns[field].set(cr, self, id_new, field, vals[field], user, rel_context) or []
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/fields.py", line 1145, in set
    self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/product/product.py", line 524, in _set_image
    return self.write(cr, uid, [id], {'image': tools.image_resize_image_big(value)}, context=context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/mail/mail_thread.py", line 264, in write
    result = super(mail_thread, self).write(cr, uid, ids, values, context=context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/orm.py", line 4270, in write
    self.pool.get(object)._store_set_values(cr, user, todo, fields_to_recompute, context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/orm.py", line 4601, in _store_set_values
    result = self._columns[val[0]].get(cr, self, ids, val, SUPERUSER_ID, context=context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/osv/fields.py", line 1131, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/addons/product/product.py", line 520, in _get_image
    result[obj.id] = tools.image_get_resized_images(obj.image, avoid_resize_medium=True)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/tools/image.py", line 165, in image_get_resized_images
    return_dict[medium_name] = image_resize_image_medium(base64_source, avoid_if_small=avoid_resize_medium)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/tools/image.py", line 103, in image_resize_image_medium
    return image_resize_image(base64_source, size, encoding, filetype, avoid_if_small)
  File "/opt/bitnami/apps/openerp/lib/openerp-7.0_20130318_002339-py2.7.egg/openerp/tools/image.py", line 83, in image_resize_image
    image = ImageOps.fit(image, size, Image.ANTIALIAS)
  File "/opt/bitnami/python/lib/python2.7/site-packages/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/ImageOps.py", line 329, in fit
    (leftSide, topSide, leftSide + cropWidth, topSide + cropHeight)
  File "/opt/bitnami/python/lib/python2.7/site-packages/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/Image.py", line 761, in crop
    self.load()
  File "/opt/bitnami/python/lib/python2.7/site-packages/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/ImageFile.py", line 189, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/opt/bitnami/python/lib/python2.7/site-packages/Pillow-1.7.8-py2.7-linux-x86_64.egg/PIL/Image.py", line 383, in _getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available

?

0
Avatar
Descartar
soo
Autor

Oh! something more: I am able to attach JPG files to emails

Avatar
Yannick Payot
Best Answer

Have you all the required libairies ?

Please check the following question: is-there-somewhere-a-list-of-needed-python-libraries

And you might need to be careful how you installed PIL librairy. You will certainly need the JPEG support.

http://askubuntu.com/questions/156484/how-do-i-install-python-imaging-library-pil

0
Avatar
Descartar
soo
Autor

I follow all the steps. And get the information -- JPEG support available. However still unable to upload JPG files.

soo
Autor

I follow some other steps, reinstall PIL, however when I run "pyhton selftest.py", IOError appear as decoder JPEG not avalibale.

Avatar
soo
Autor Best Answer

OK! I install the apps via 3rd party manage console. Some of the users facing the same problem as well. Should be the server setting error. Thank you.

0
Avatar
Descartar
Avatar
NGUYEN TRUNG THANH
Best Answer

Hi all, 

 

- I have the same error 

- I fix :

-----------------------

* The first remove all pillow and PIL packge inside site-packge python2.x

* After process:

Pillow:

$ wget https://pypi.python.org/packages/source/P/Pillow/Pillow-2.2.1.zip 

and install it

unzip

cd this

sudo python2.7 setup.py install

 

Hope help :)

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
===✈mejor época para viajar[UNITED] ⏩ ¿Cómo hablo con alguien en United?
attach
Avatar
0
de nov. 25
3
Set up the Project Customer Ratings in V19
attach
Avatar
0
de nov. 25
6
Odoo 18 - POS Automatically Enters Open Control on Closing a Session
attach
Avatar
0
de nov. 25
25
{Volaris S tención Directa}¿Cómo hablar directamente en Volaris?
attach
Avatar
0
d’oct. 25
4
Import file and retain file date
attach
Avatar
Avatar
Avatar
2
de set. 25
823
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now