add another test for tiff ifd pyramids
test loading from a lower layer
This commit is contained in:
parent
8851150375
commit
2ca96a3fef
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue