mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Merge pull request #5425 from radarhere/iptc
Changed TIFF tag 33723 length to 1
This commit is contained in:
commit
23efd39b99
|
@ -179,6 +179,12 @@ def test_no_duplicate_50741_tag():
|
||||||
assert TAG_IDS["BestQualityScale"] == 50780
|
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():
|
def test_empty_metadata():
|
||||||
f = io.BytesIO(b"II*\x00\x08\x00\x00\x00")
|
f = io.BytesIO(b"II*\x00\x08\x00\x00\x00")
|
||||||
head = f.read(8)
|
head = f.read(8)
|
||||||
|
|
|
@ -178,7 +178,7 @@ TAGS_V2 = {
|
||||||
532: ("ReferenceBlackWhite", RATIONAL, 6),
|
532: ("ReferenceBlackWhite", RATIONAL, 6),
|
||||||
700: ("XMP", BYTE, 0),
|
700: ("XMP", BYTE, 0),
|
||||||
33432: ("Copyright", ASCII, 1),
|
33432: ("Copyright", ASCII, 1),
|
||||||
33723: ("IptcNaaInfo", UNDEFINED, 0),
|
33723: ("IptcNaaInfo", UNDEFINED, 1),
|
||||||
34377: ("PhotoshopInfo", BYTE, 0),
|
34377: ("PhotoshopInfo", BYTE, 0),
|
||||||
# FIXME add more tags here
|
# FIXME add more tags here
|
||||||
34665: ("ExifIFD", LONG, 1),
|
34665: ("ExifIFD", LONG, 1),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user