Commit dd4715f7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Image: use smaller sRGB ICC profile.

parent d41ee876
Pipeline #10731 failed with stage
...@@ -339,8 +339,9 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -339,8 +339,9 @@ class Image(TextConvertableMixin, File, OFSImage):
crop=False, crop=False,
): ):
"""Resize and resample photo.""" """Resize and resample photo."""
# https://github.com/saucecontrol/Compact-ICC-Profiles
icc_profile = os.path.join(os.path.dirname(Products.ERP5.__file__), icc_profile = os.path.join(os.path.dirname(Products.ERP5.__file__),
'misc', 'sRGB.icc') 'misc', 'sRGB-v2-magic.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