Commit da8b49d2 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

not only '-colorspace sRGB' but also '-depth 8' in image resize.

otherwise the result for 2-bit input is unreadable 2-bit with current imagemagick.
parent 44ca4d66
......@@ -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', 'sRGB',
parameter_list = ['convert', '-colorspace', 'sRGB', '-depth', '8',
'-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