mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Added further field sizes
This commit is contained in:
parent
b0c7653502
commit
dd15f15d08
|
@ -96,10 +96,17 @@ class TestFileTiff:
|
||||||
|
|
||||||
assert_image_similar_tofile(im, "Tests/images/pil136.png", 1)
|
assert_image_similar_tofile(im, "Tests/images/pil136.png", 1)
|
||||||
|
|
||||||
def test_bigtiff(self):
|
def test_bigtiff(self, tmp_path):
|
||||||
with Image.open("Tests/images/hopper_bigtiff.tif") as im:
|
with Image.open("Tests/images/hopper_bigtiff.tif") as im:
|
||||||
assert_image_equal_tofile(im, "Tests/images/hopper.tif")
|
assert_image_equal_tofile(im, "Tests/images/hopper.tif")
|
||||||
|
|
||||||
|
with Image.open("Tests/images/hopper_bigtiff.tif") as im:
|
||||||
|
# multistrip support not yet implemented
|
||||||
|
del im.tag_v2[273]
|
||||||
|
|
||||||
|
outfile = str(tmp_path / "temp.tif")
|
||||||
|
im.save(outfile, save_all=True, append_images=[im], tiffinfo=im.tag_v2)
|
||||||
|
|
||||||
def test_set_legacy_api(self):
|
def test_set_legacy_api(self):
|
||||||
ifd = TiffImagePlugin.ImageFileDirectory_v2()
|
ifd = TiffImagePlugin.ImageFileDirectory_v2()
|
||||||
with pytest.raises(Exception) as e:
|
with pytest.raises(Exception) as e:
|
||||||
|
|
|
@ -1892,6 +1892,10 @@ class AppendingTiffWriter:
|
||||||
8, # srational
|
8, # srational
|
||||||
4, # float
|
4, # float
|
||||||
8, # double
|
8, # double
|
||||||
|
4, # ifd
|
||||||
|
2, # unicode
|
||||||
|
4, # complex
|
||||||
|
8, # long8
|
||||||
]
|
]
|
||||||
|
|
||||||
# StripOffsets = 273
|
# StripOffsets = 273
|
||||||
|
|
Loading…
Reference in New Issue
Block a user