drewnoakes/metadata-extractor-dotnet

UNICODE EXIF UserComment tag read as BigEndian Unicode results in incorrect decoding

开放

#423 创建于 2024年6月12日

 (3 条评论) (0 个反应) (0 位负责人)C# (187 个派生)github user discovery
format-exifhelp wantedimage-queue

仓库指标

星标
 (1,059 个星标)
PR 合并指标
 (平均合并 11小时 24分钟) (30 天内合并 1 个 PR)

描述

338819806-4bc1ebcf-6edb-4545-92e5-ff2fc4f7cfb2

The metadata in the file has a UserComment tag in the Exif SubIFD directory that contains a UNICODE-encoded text containing JSON. With the existing code, the text will be decoded using BigEndianUnicode, which will result in incorrect text.

If the Encoding in TagDescriptor for the UNICODE encodingMap is set to Encoding.Unicode, it will decode properly.

Should this be just Unicode? Is there a discriminator that determines what endianess it should use?

贡献者指南