drewnoakes/metadata-extractor

Treat \0 as terminator in IPTC strings

オープン

#122 opened on 2015/09/04

 (1 件のコメント) (0 件のリアクション) (0 人の担当者)Java (470 件のフォーク)batch import
bugformat-iptcgood-first-issuehelp wantedimage-queue

Repository metrics

Stars
 (2,411 個のスター)
PR merge metrics
 (平均マージ 3d 2h) (30d で 2 merged PRs)

説明

The below image, when passed through exiftool, reads the IPTC Source as "Getty Images North America".

When read with the IptcDirectory we're getting "Getty Images ����". On closer inspection it looks something more like: "Getty Images\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0003\u0000\u0000\u0000\u0005\u0000\u0000\u0000\n����".

The null character is often used to denote the end of a string - is this being respected? Or not as it's not part of the standard?

getty-borked

コントリビューターガイド