mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Added reading of IFD tag type
This commit is contained in:
parent
74e91090de
commit
1a3367400c
BIN
Tests/images/ifd_tag_type.tiff
Normal file
BIN
Tests/images/ifd_tag_type.tiff
Normal file
Binary file not shown.
|
@ -385,6 +385,10 @@ class TestFileTiff:
|
|||
ret = ifd.load_double(data, False)
|
||||
assert ret == (8.540883223036124e194, 8.540883223036124e194)
|
||||
|
||||
def test_ifd_tag_type(self):
|
||||
with Image.open("Tests/images/ifd_tag_type.tiff") as im:
|
||||
assert 0x8825 in im.tag_v2
|
||||
|
||||
def test_seek(self):
|
||||
filename = "Tests/images/pil136.tiff"
|
||||
with Image.open(filename) as im:
|
||||
|
|
|
@ -665,6 +665,7 @@ class ImageFileDirectory_v2(MutableMapping):
|
|||
(TiffTags.SIGNED_LONG, "l", "signed long"),
|
||||
(TiffTags.FLOAT, "f", "float"),
|
||||
(TiffTags.DOUBLE, "d", "double"),
|
||||
(TiffTags.IFD, "L", "long"),
|
||||
],
|
||||
)
|
||||
)
|
||||
|
|
|
@ -69,6 +69,7 @@ SIGNED_LONG = 9
|
|||
SIGNED_RATIONAL = 10
|
||||
FLOAT = 11
|
||||
DOUBLE = 12
|
||||
IFD = 13
|
||||
|
||||
TAGS_V2 = {
|
||||
254: ("NewSubfileType", LONG, 1),
|
||||
|
|
Loading…
Reference in New Issue
Block a user