mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 01:16:16 +03:00
Add tests for uncompressed tiff with interleaved bands
This commit is contained in:
parent
e6c510ef38
commit
98d88fd1c6
BIN
Tests/images/tiff_strip_planar_raw.tif
Normal file
BIN
Tests/images/tiff_strip_planar_raw.tif
Normal file
Binary file not shown.
BIN
Tests/images/tiff_strip_planar_raw_with_overviews.tif
Normal file
BIN
Tests/images/tiff_strip_planar_raw_with_overviews.tif
Normal file
Binary file not shown.
BIN
Tests/images/tiff_tiled_planar_raw.tif
Normal file
BIN
Tests/images/tiff_tiled_planar_raw.tif
Normal file
Binary file not shown.
|
@ -422,8 +422,24 @@ class TestFileTiff(PillowTestCase):
|
||||||
|
|
||||||
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
||||||
|
|
||||||
def test_tiled_raw(self):
|
def test_strip_planar_raw(self):
|
||||||
infile = "Tests/images/tiff_tiled_raw.tif"
|
# 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)
|
im = Image.open(infile)
|
||||||
|
|
||||||
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
self.assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user