Changed TIFF tag 33723 length to 1

This commit is contained in:
Andrew Murray 2021-04-21 22:37:47 +10:00
parent ab8955b48e
commit 6b098a2c34
2 changed files with 7 additions and 1 deletions

View File

@ -179,6 +179,12 @@ def test_no_duplicate_50741_tag():
assert TAG_IDS["BestQualityScale"] == 50780
def test_iptc(tmp_path):
out = str(tmp_path / "temp.tiff")
with Image.open("Tests/images/hopper.Lab.tif") as im:
im.save(out)
def test_empty_metadata():
f = io.BytesIO(b"II*\x00\x08\x00\x00\x00")
head = f.read(8)

View File

@ -178,7 +178,7 @@ TAGS_V2 = {
532: ("ReferenceBlackWhite", RATIONAL, 6),
700: ("XMP", BYTE, 0),
33432: ("Copyright", ASCII, 1),
33723: ("IptcNaaInfo", UNDEFINED, 0),
33723: ("IptcNaaInfo", UNDEFINED, 1),
34377: ("PhotoshopInfo", BYTE, 0),
# FIXME add more tags here
34665: ("ExifIFD", LONG, 1),