[Python-modules-commits] [sorl-thumbnail] 09/17: isome engines do not preserve ICC profile on crop

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Jan 6 21:05:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to branch master
in repository sorl-thumbnail.

commit 8b292bba76b5fa9f8d2a1da47445d13a1b44284e
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Thu Oct 8 13:53:18 2015 -0700

    isome engines do not preserve ICC profile on crop
    
     Skip the test for the ICC profile in a thumbnail if either graphicsmagick or
     pgmagick is used as an engine.
    Last-Update: 2015-01-27
    Forwarded: no
    
    Patch-Name: icc_profile.patch
---
 tests/thumbnail_tests/test_engines.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/thumbnail_tests/test_engines.py b/tests/thumbnail_tests/test_engines.py
index 6bc0e82..082a331 100644
--- a/tests/thumbnail_tests/test_engines.py
+++ b/tests/thumbnail_tests/test_engines.py
@@ -329,6 +329,11 @@ class CropTestCase(BaseTestCase):
         # TODO: Complete test for smart crop
         self.BACKEND.get_thumbnail('32x32', 'data/white_border.jpg', crop='smart')
 
+    @unittest.skipIf(settings.THUMBNAIL_ENGINE in (
+        "sorl.thumbnail.engines.pgmagick_engine.Engine",
+        "sorl.thumbnail.engines.convert_engine.Engine",
+        ),
+        "graphicsmagick and pgmagick do not preserve ICC profile on crop")
     def test_crop_image_with_icc_profile(self):
         name = 'data/icc_profile_test.jpg'
         item, _ = Item.objects.get_or_create(image=name)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sorl-thumbnail.git



More information about the Python-modules-commits mailing list