Commit 08d69f51 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

specify 'RGB' colorspace explicitly in Image._resize() because some user...

specify 'RGB' colorspace explicitly in Image._resize() because some user agents cannot handle CMYK images.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28639 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6315893
......@@ -407,6 +407,7 @@ class Image(File, OFSImage):
newimg = StringIO()
parameter_list = ['convert']
parameter_list.extend(['-colorspace', 'RGB'])
if resolution:
parameter_list.extend(['-density', '%sx%s' % (resolution, resolution)])
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