Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Services for Partners
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

How to upload jpg images

Odebírat

Get notified when there's activity on this post

This question has been flagged
attachuploadaws
3 Odpovědi
12151 Zobrazení
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
Zrušit
soo
Autor

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

Avatar
Yannick Payot
Nejlepší odpověď

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
Zrušit
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 Nejlepší odpověď

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
Zrušit
Avatar
NGUYEN TRUNG THANH
Nejlepší odpověď

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
Zrušit
Enjoying the discussion? Don't just read, join in!

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

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
¿Cómo hablo con un agente en vivo en LATAM?
attach
Avatar
0
říj 25
3
(Teléfono~Avianca)¿Cómo se llama avianca en El Salvador?
attach
Avatar
0
říj 25
6
((KLMofficial))¿Cómo hablo con un agente de KLM?
attach
Avatar
0
říj 25
4
{Volaris S tención Directa}¿Cómo hablar directamente en Volaris?
attach
Avatar
0
říj 25
4
Import file and retain file date
attach
Avatar
Avatar
Avatar
2
zář 25
764
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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