Pillow
Pillow copied to clipboard
Only preserve TIFF IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED
Resolves #7940
The issue contains an image where tag 33723 is specified as LONG, when it should be BYTE or UNDEFINED according to https://www.awaresystems.be/imaging/tiff/tifftags/iptc.html.
This changes Pillow to not preserve the tag automatically if it has the wrong type.