From b022e37093d9ead282d04b5a8cf172974947e725 Mon Sep 17 00:00:00 2001 From: Sebastien Robin <seb@nexedi.com> Date: Tue, 26 Feb 2013 08:47:14 +0100 Subject: [PATCH] Revert "use sRGB colorspace instead of RGB in image conversion." This reverts commit a407286805ed97387fbb0afa24d8c7c059bc72b0. => it makes test testERP5WebWithDms failing. Please update unit test and also add test to check what you fixed with this change. --- product/ERP5/Document/Image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5/Document/Image.py b/product/ERP5/Document/Image.py index eaaf01b44f..d2d74e691d 100644 --- a/product/ERP5/Document/Image.py +++ b/product/ERP5/Document/Image.py @@ -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', 'RGB', '-quality', str(quality), '-geometry', '%sx%s' % (width, height)] if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST: -- 2.30.9