mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Test for #1526, load binary tagged iccprofile
This commit is contained in:
parent
a14467f10b
commit
f8a5ded0d6
|
@ -158,6 +158,14 @@ class TestFileTiffMetadata(PillowTestCase):
|
|||
self.assert_(type(im.info['icc_profile']) is not type(tuple))
|
||||
self.assertEqual(im.info['icc_profile'], reloaded.info['icc_profile'])
|
||||
|
||||
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.
|
||||
|
||||
im = Image.open('Tests/images/hopper.iccprofile_binary.tif')
|
||||
self.assertEqual(im.tag_v2.tagtype[34675], 1)
|
||||
self.assert_(im.info['icc_profile'])
|
||||
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user