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

Wolfgang Borgert debacle at moszumanska.debian.org
Wed Oct 5 01:39:42 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 d5a9bbb625355a53997bda0ece0e669c69552881
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 da6a86a..b4e1bc3 100644
--- a/tests/thumbnail_tests/test_engines.py
+++ b/tests/thumbnail_tests/test_engines.py
@@ -344,6 +344,11 @@ class CropTestCase(BaseTestCase):
         self.assertEqual(th.x, 25)
         self.assertEqual(th.y, 50)
 
+    @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