mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-16 02:04:45 +03:00
Test for icc_profile write issues
This commit is contained in:
parent
dd9f1a8731
commit
766d3f4592
|
@ -175,9 +175,13 @@ class TestFileTiffMetadata(PillowTestCase):
|
||||||
|
|
||||||
im.save(out)
|
im.save(out)
|
||||||
reloaded = Image.open(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'])
|
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):
|
def test_iccprofile_binary(self):
|
||||||
# https://github.com/python-pillow/Pillow/issues/1526
|
# https://github.com/python-pillow/Pillow/issues/1526
|
||||||
# We should be able to load this, but probably won't be able to save it.
|
# We should be able to load this, but probably won't be able to save it.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user