drewnoakes/metadata-extractor

Treat \0 as terminator in IPTC strings

开放

#122 创建于 2015年9月4日

 (1 条评论) (0 个反应) (0 位负责人)Java (470 个派生)batch import
bugformat-iptcgood-first-issuehelp wantedimage-queue

仓库指标

星标
 (2,411 个星标)
PR 合并指标
 (平均合并 3天 2小时) (30 天内合并 2 个 PR)

描述

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

贡献者指南