mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
Test for icc_profile write issues
This commit is contained in:
parent
90955e4953
commit
c24058a219
|
@ -175,9 +175,13 @@ class TestFileTiffMetadata(PillowTestCase):
|
|||
|
||||
im.save(out)
|
||||
reloaded = Image.open(out)
|
||||
self.assert_(type(im.info['icc_profile']) is not type(tuple))
|
||||
self.assert_(type(im.info['icc_profile']) is not tuple)
|
||||
self.assertEqual(im.info['icc_profile'], reloaded.info['icc_profile'])
|
||||
|
||||
png_out = self.tempfile('temp.png')
|
||||
# This should not error out. #1462
|
||||
im.save(png_out)
|
||||
|
||||
def test_iccprofile_binary(self):
|
||||
# https://github.com/python-pillow/Pillow/issues/1526
|
||||
# We should be able to load this, but probably won't be able to save it.
|
||||
|
|
Loading…
Reference in New Issue
Block a user