在我尝试过的大约 1% 的 JPEG 上调用 BitmapMetadata.GetQuery("/app13/irb/8biiptc/iptc") 时出现以下异常。这可能是什么原因造成的,我能做些什么来解决它?(我试过谷歌搜索,但我只能找到一个相关的结果,问同样的问题但没有答案。)
System.OverflowException:
The image data generated an overflow during processing. --->
System.Runtime.InteropServices.COMException (0x88982F05):
Exception from HRESULT: 0x88982F05
--- End of inner exception stack trace ---
at System.Windows.Media.Imaging.BitmapMetadata.GetQuery(String query)
at MyProject.ImageRecord..ctor(String file)
in C:\MyProject\ImageRecord.cs:line 93
The image data generated an overflow during processing.
编辑:
该exiv2
工具报告:
Error: Invalid Photoshop IRB data size 6372