Commit d4c96e60 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Xiaowu Zhang

Fix Image conversion color

 Fix Image Conversion by using sRGB instead RGB, because it seems that using
 'sRGB' instead of 'RGB' makes a good result for RGB input, because imagemagick
 assume that input's colorspace is sRGB if not specified.
parent c1314393
...@@ -318,7 +318,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -318,7 +318,7 @@ class Image(TextConvertableMixin, File, OFSImage):
def _resize(self, quality, width, height, format, resolution, frame): def _resize(self, quality, width, height, format, resolution, frame):
"""Resize and resample photo.""" """Resize and resample photo."""
parameter_list = ['convert', '-colorspace', 'RGB', parameter_list = ['convert', '-colorspace', 'sRGB',
'-quality', str(quality), '-quality', str(quality),
'-geometry', '%sx%s' % (width, height)] '-geometry', '%sx%s' % (width, height)]
if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST: if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST:
......
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