From 13b8c1c70bffb0532406c1bd4c1b2ce3595780e1 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Tue, 19 Apr 2016 08:20:15 -0700 Subject: [PATCH] test the output for a CMYK EPS image --- Tests/test_file_eps.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Tests/test_file_eps.py b/Tests/test_file_eps.py index a68a72245..02a2baf1d 100644 --- a/Tests/test_file_eps.py +++ b/Tests/test_file_eps.py @@ -59,9 +59,18 @@ class TestFileEps(PillowTestCase): def test_cmyk(self): cmyk_image = Image.open("Tests/images/pil_sample_cmyk.eps") + self.assertEqual(cmyk_image.mode, "CMYK") self.assertEqual(cmyk_image.size, (100, 100)) self.assertEqual(cmyk_image.format, "EPS") + + cmyk_image.load() + self.assertEqual(cmyk_image.mode, "RGB") + + if 'jpeg_decoder' in dir(Image.core): + target = Image.open('Tests/images/pil_sample_rgb.jpg') + self.assert_image_similar(cmyk_image, target, 10) + def test_file_object(self): # issue 479