mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
add test for this case
This commit is contained in:
parent
f0ae36080c
commit
ce151bcd72
BIN
Tests/images/tiff_wrong_bits_per_sample.tiff
Normal file
BIN
Tests/images/tiff_wrong_bits_per_sample.tiff
Normal file
Binary file not shown.
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user