Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Sep 18, 2019
1 parent b37f12a commit 19ab3c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Binary file added Tests/images/no_rows_per_strip.tif
Binary file not shown.
7 changes: 7 additions & 0 deletions Tests/test_file_libtiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,3 +818,10 @@ def test_old_style_jpeg(self):
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))

0 comments on commit 19ab3c3

Please sign in to comment.