drewnoakes/metadata-extractor-dotnet
UNICODE EXIF UserComment tag read as BigEndian Unicode results in incorrect decoding
开放
#423 创建于 2024年6月12日
format-exifhelp wantedimage-queue
仓库指标
- 星标
- (1,059 个星标)
- PR 合并指标
- (平均合并 11小时 24分钟) (30 天内合并 1 个 PR)
描述
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?