Commit 85333601 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use '-alpha off' instead of '-flatten' that is not good for multiple images input.

parent c97ca158
...@@ -312,7 +312,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -312,7 +312,7 @@ class Image(TextConvertableMixin, File, OFSImage):
parameter_list = ['convert'] parameter_list = ['convert']
parameter_list.extend(['-colorspace', 'RGB']) parameter_list.extend(['-colorspace', 'RGB'])
if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST: if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST:
parameter_list.append('-flatten') parameter_list.extend(['-alpha', 'off'])
if resolution: if resolution:
parameter_list.extend(['-density', '%sx%s' % (resolution, resolution)]) parameter_list.extend(['-density', '%sx%s' % (resolution, resolution)])
parameter_list.extend(['-quality', str(quality)]) parameter_list.extend(['-quality', str(quality)])
......
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