.NET C#库无损的Exif重写? [英] .NET C# library for lossless Exif rewriting?
问题描述
我已经找到了编辑的Exif 各种code和库。
I have found various code and libraries for editing Exif.
但它们毕竟只是无损当图像的宽度和高度是16的倍数。
But they are only lossless when the image width and height is multiple of 16.
我要寻找一个库(或者甚至是办法做到这一点我自己)编辑的JPEG文件只是Exif的部分(或添加Exif数据中,如果它还不存在),而使其他数据不变。是不是这可能吗?
I am looking for a library (or even a way to do it myself) to edit just the Exif portion in a JPEG file (or add Exif data if it doesn't exist yet), leaving the other data unmodified. Isn't that possible?
到目前为止,我只能找到的Exif部分(开始0xFFE1),但我不知道如何来读取数据。
So far I could only locate the Exif portion (starts with 0xFFE1) but I don't understand how to read the data.
推荐答案
下面是规格的Exif交换格式,如果你打算code自己的库进行编辑的标签。
Here are the specifications for the Exif interchange format, if you plan to code your own library for editing tags.
http://www.exif.org/specifications.html
下面是用Perl编写的库,以满足您的需求,您也许能够从中吸取教训:
Here's a library written in Perl that meets your needs that you may be able to learn from:
<一个href="http://www.sno.phy.queensu.ca/~phil/exiftool/">http://www.sno.phy.queensu.ca/~phil/exiftool/
下面是一个不错的.NET库的Exif评估从的code项目:
Here's a decent .NET library for Exif evaluation from The Code Project:
<一个href="http://www.$c$cproject.com/KB/graphics/exiftagcol.aspx">http://www.$c$cproject.com/KB/graphics/exiftagcol.aspx
这篇关于.NET C#库无损的Exif重写?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!