mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
test the output for a CMYK EPS image
This commit is contained in:
parent
392d567352
commit
13b8c1c70b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user