diff --git a/product/ERP5/Document/Image.py b/product/ERP5/Document/Image.py index 0ba44f9d83ab79a69a6a480298bd658c76244416..972bb92172d53136033dc0a9430db0b58676c528 100644 --- a/product/ERP5/Document/Image.py +++ b/product/ERP5/Document/Image.py @@ -312,7 +312,7 @@ class Image(TextConvertableMixin, File, OFSImage): parameter_list = ['convert'] parameter_list.extend(['-colorspace', 'RGB']) if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST: - parameter_list.append('-flatten') + parameter_list.extend(['-alpha', 'off']) if resolution: parameter_list.extend(['-density', '%sx%s' % (resolution, resolution)]) parameter_list.extend(['-quality', str(quality)])