← Back to team overview

openerp-india team mailing list archive

[Bug 1091703] Re: company image cannot be in CMYK color

 

** Changed in: openobject-server
   Importance: Undecided => Medium

** Changed in: openobject-server
       Status: New => Confirmed

** Changed in: openobject-server
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1091703

Title:
  company image cannot be in CMYK color

Status in OpenERP Server:
  Confirmed

Bug description:
  If i upload a CMYK colored JPG as the company logo i got this error
  message:

  2012-12-18 14:46:55,134 1484 ERROR test1 openerp.netsvc: cannot write mode CMYK as PNG
  Traceback (most recent call last):
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\netsvc.py", line 281, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\service\web_services.py", line 603, in dispatch
      res = fn(db, uid, *params)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 169, in execute_kw
      return self.execute(db, uid, obj, method, *args, **kw or {})
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 123, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 179, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\osv.py", line 166, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\res\res_company.py", line 261, in write
      return super(res_company, self).write(cr, uid, ids, values, context=context)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\orm.py", line 4180, in write
      result += self._columns[field].set(cr, self, id, field, vals[field], user, context=rel_context) or []
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\fields.py", line 1136, in set
      self._fnct_inv(obj, cr, user, id, name, value, self._fnct_inv_arg, context)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\fields.py", line 1179, in _fnct_write
      record.write({self.arg[-1]: values})
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\orm.py", line 374, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\crm_profiling\crm_profiling.py", line 215, in write
      return super(partner, self).write(cr, uid, ids, vals, context=context)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\res\res_partner.py", line 375, in write
      return super(res_partner,self).write(cr, uid, ids, vals, context=context)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\orm.py", line 4272, in write
      self.pool.get(object)._store_set_values(cr, user, todo, fields_to_recompute, context)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\orm.py", line 4629, in _store_set_values
      result = self._columns[f].get(cr, self, ids, f, SUPERUSER_ID, context=context)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\osv\fields.py", line 1122, in get
      result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
    File "c:\oesrv\7.0\Lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\addons\base\res\res_company.py", line 109, in _get_logo_web
      result[record.id] = image_resize_image(record.partner_id.image, size)
    File "C:\oesrv\7.0\lib\site-packages\openerp-7.0alpha-py2.7.egg\openerp\tools\image.py", line 79, in image_resize_image
      image.save(background_stream, filetype)
    File "c:\python27\lib\site-packages\PIL\Image.py", line 1439, in save
      save_handler(self, fp, filename)
    File "c:\python27\lib\site-packages\PIL\PngImagePlugin.py", line 506, in _save
      raise IOError, "cannot write mode %s as PNG" % mode
  IOError: cannot write mode CMYK as PNG

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1091703/+subscriptions


References