add another test for tiff ifd pyramids

test loading from a lower layer
This commit is contained in:
John Cupitt 2021-06-29 08:34:42 +01:00
parent 8851150375
commit 2ca96a3fef
1 changed files with 6 additions and 0 deletions

View File

@ -421,6 +421,12 @@ class TestForeign:
assert x.width == 72
assert abs(x.avg() - 117.3) < 1
filename = temp_filename(self.tempdir, '.tif')
self.colour.write_to_file(filename, pyramid=True, subifd=True, compression="jpeg")
x = pyvips.Image.new_from_file(filename, subifd=1)
assert x.width == 72
assert abs(x.avg() - 117.3) < 1
filename = temp_filename(self.tempdir, '.tif')
x = pyvips.Image.new_from_file(TIF_FILE)
x = x.copy()