64位(或另一个EXIF编写器)中的Exiv2

时间:2022-05-21 21:17:48

I need a non-destructive way of adding EXIF tags to jpeg images from .NET code. So far I have found Exiv2 and the .NET wrapper Exiv2net that works well when adding or updating tags. However, my code needs to run on a 64-bit machine (and compiled for 64-bit due to other reasons) and it seems to me that the Exiv2 code only compiles in 32-bit.

我需要一种非破坏性的方法来将.NET函数中的EXIF标记添加到jpeg图像中。到目前为止,我发现Exiv2和.NET包装器Exiv2net在添加或更新标签时效果很好。但是,我的代码需要在64位机器上运行(由于其他原因而编译为64位),在我看来,Exiv2代码只能编译为32位。

I am therefore looking for either someone working on a 64-bit version of Exiv2 and Exiv2net or another toolkit entirely. Has anyone seen such a thing?

因此,我正在寻找一个完全使用64位版本的Exiv2和Exiv2net或其他工具包的人。有没有人见过这样的事情?

Btw, the BitmapMetadata from WPF removes EXIF tags when updating and will not work for my purposes.

顺便说一句,WPF中的BitmapMetadata在更新时会删除EXIF标记,但不能用于我的目的。

1 个解决方案

#1


If you know your target system will have a Perl interpreter, you could bundle exiftool and call it to do work on behalf of your app. You may even be able to compile it into a standalone executable.

如果您知道您的目标系统将具有Perl解释器,您可以捆绑exiftool并将其命名为代表您的应用程序工作。您甚至可以将其编译为独立的可执行文件。

#1


If you know your target system will have a Perl interpreter, you could bundle exiftool and call it to do work on behalf of your app. You may even be able to compile it into a standalone executable.

如果您知道您的目标系统将具有Perl解释器,您可以捆绑exiftool并将其命名为代表您的应用程序工作。您甚至可以将其编译为独立的可执行文件。