Added test

This commit is contained in:
Andrew Murray 2019-09-18 22:07:17 +10:00
parent b37f12a5f8
commit 19ab3c36e6
2 changed files with 7 additions and 0 deletions

Binary file not shown.

View File

@ -818,3 +818,10 @@ class TestFileLibTiff(LibTiffTestCase):
self.assert_image_equal_tofile(
im, "Tests/images/old-style-jpeg-compression.png"
)
def test_no_rows_per_strip(self):
# This image does not have a RowsPerStrip TIFF tag
infile = "Tests/images/no_rows_per_strip.tif"
im = Image.open(infile)
im.load()
self.assertEqual(im.size, (950, 975))