Commit d41ee876 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! ZODB Components: Migrate source files related to erp5_base.

parent 9c7d959f
...@@ -38,6 +38,7 @@ from cStringIO import StringIO ...@@ -38,6 +38,7 @@ from cStringIO import StringIO
from AccessControl import ClassSecurityInfo from AccessControl import ClassSecurityInfo
from Acquisition import aq_base from Acquisition import aq_base
import Products.ERP5
from Products.ERP5Type import Permissions, PropertySheet from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Utils import fill_args_from_request from Products.ERP5Type.Utils import fill_args_from_request
from erp5.component.document.File import File from erp5.component.document.File import File
...@@ -338,8 +339,8 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -338,8 +339,8 @@ class Image(TextConvertableMixin, File, OFSImage):
crop=False, crop=False,
): ):
"""Resize and resample photo.""" """Resize and resample photo."""
icc_profile = os.path.join(os.path.dirname(__file__), icc_profile = os.path.join(os.path.dirname(Products.ERP5.__file__),
'..', 'misc', 'sRGB.icc') 'misc', 'sRGB.icc')
parameter_list = ['convert', '-colorspace', 'sRGB', '-depth', '8', parameter_list = ['convert', '-colorspace', 'sRGB', '-depth', '8',
'-profile', icc_profile] '-profile', icc_profile]
if crop : if crop :
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment