mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 02:16:19 +03:00
Test TIF with LZW compression
This commit is contained in:
parent
272f11434d
commit
311f8f6a9c
|
@ -450,6 +450,18 @@ class TestFileTiff(PillowTestCase):
|
||||||
# Should not raise UnicodeDecodeError or anything else
|
# Should not raise UnicodeDecodeError or anything else
|
||||||
im.save(outfile)
|
im.save(outfile)
|
||||||
|
|
||||||
|
def test_lzw(self):
|
||||||
|
# Act
|
||||||
|
im = Image.open("Tests/images/hopper_lzw.tif")
|
||||||
|
|
||||||
|
# Assert
|
||||||
|
self.assertEqual(im.mode, 'RGB')
|
||||||
|
self.assertEqual(im.size, (128, 128))
|
||||||
|
self.assertEqual(im.format, "TIFF")
|
||||||
|
im2 = hopper()
|
||||||
|
self.assert_image_similar(im, im2, 5)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user