mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
Merge 0ac4903cb9
into 72766b8f4e
This commit is contained in:
commit
b68e4a9452
|
@ -1010,7 +1010,10 @@ class TiffImageFile(ImageFile.ImageFile):
|
|||
self.decoderconfig = (self.tag_v2[PREDICTOR],)
|
||||
|
||||
if ICCPROFILE in self.tag_v2:
|
||||
self.info['icc_profile'] = self.tag_v2[ICCPROFILE]
|
||||
iccprofile = self.tag_v2[ICCPROFILE]
|
||||
if len(iccprofile) == 1:
|
||||
iccprofile = iccprofile[0]
|
||||
self.info['icc_profile'] = iccprofile
|
||||
|
||||
return args
|
||||
|
||||
|
|
|
@ -175,7 +175,7 @@ class TestFileTiffMetadata(PillowTestCase):
|
|||
|
||||
im.save(out)
|
||||
reloaded = Image.open(out)
|
||||
self.assert_(type(im.info['icc_profile']) is not type(tuple))
|
||||
self.assertNotIsInstance(im.info['icc_profile'], tuple)
|
||||
self.assertEqual(im.info['icc_profile'], reloaded.info['icc_profile'])
|
||||
|
||||
def test_iccprofile_binary(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user