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
from AccessControl import ClassSecurityInfo
from Acquisition import aq_base
import Products.ERP5
from Products.ERP5Type import Permissions, PropertySheet
from Products.ERP5Type.Utils import fill_args_from_request
from erp5.component.document.File import File
......@@ -338,8 +339,8 @@ class Image(TextConvertableMixin, File, OFSImage):
crop=False,
):
"""Resize and resample photo."""
icc_profile = os.path.join(os.path.dirname(__file__),
'..', 'misc', 'sRGB.icc')
icc_profile = os.path.join(os.path.dirname(Products.ERP5.__file__),
'misc', 'sRGB.icc')
parameter_list = ['convert', '-colorspace', 'sRGB', '-depth', '8',
'-profile', icc_profile]
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