Commit a4072868 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
parent 4e2886fa
......@@ -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