Add tests for uncompressed tiff with interleaved bands

This commit is contained in:
Konstantin Kopachev 2018-07-17 10:27:11 -07:00
parent e6c510ef38
commit 98d88fd1c6
No known key found for this signature in database
GPG Key ID: CECF757E656F4F62
4 changed files with 18 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -422,8 +422,24 @@ class TestFileTiff(PillowTestCase):
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
def test_tiled_raw(self):
infile = "Tests/images/tiff_tiled_raw.tif"
def test_strip_planar_raw(self):
# gdal_translate -of GTiff -co INTERLEAVE=BAND tiff_strip_raw.tif tiff_strip_planar_raw.tiff
infile = "Tests/images/tiff_strip_planar_raw.tif"
im = Image.open(infile)
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
def test_strip_planar_raw_with_overviews(self):
# gdaladdo tiff_strip_planar_raw2.tif 2 4 8 16
infile = "Tests/images/tiff_strip_planar_raw_with_overviews.tif"
im = Image.open(infile)
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
def test_tiled_planar_raw(self):
# gdal_translate -of GTiff -co TILED=YES -co BLOCKXSIZE=32 -co BLOCKYSIZE=32 -co INTERLEAVE=BAND \
# tiff_tiled_raw.tif tiff_tiled_planar_raw.tiff
infile = "Tests/images/tiff_tiled_planar_raw.tif"
im = Image.open(infile)
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")