add test for this case

This commit is contained in:
Alexander 2017-12-08 17:32:39 +03:00
parent f0ae36080c
commit ce151bcd72
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -59,6 +59,14 @@ class TestFileTiff(PillowTestCase):
self.assertEqual(im.tile, [('tiff_lzw', (0, 0, 100, 40), 50, 'RGBa;16B')])
im.load()
def test_wrong_bits_per_sample(self):
im = Image.open("Tests/images/tiff_wrong_bits_per_sample.tiff")
self.assertEqual(im.mode, "RGBA")
self.assertEqual(im.size, (52, 53))
self.assertEqual(im.tile, [('raw', (0, 0, 52, 53), 160, ('RGBA', 0, 1))])
im.load()
def test_gimp_tiff(self):
# Read TIFF JPEG images from GIMP [@PIL168]