Commit 3f484980 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use sRGB colorspace instead of RGB in image conversion.

> Note, ImageMagick assumes the sRGB colorspace if the image format does not indicate otherwise.
http://www.imagemagick.org/script/command-line-options.php#colorspace

Also updated expected converted result with sRGB output.
parent b022e370
......@@ -320,7 +320,7 @@ class Image(TextConvertableMixin, File, OFSImage):
def _resize(self, quality, width, height, format, resolution, frame):
"""Resize and resample photo."""
parameter_list = ['convert', '-colorspace', 'RGB',
parameter_list = ['convert', '-colorspace', 'sRGB',
'-quality', str(quality),
'-geometry', '%sx%s' % (width, height)]
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