How can I write an Exif header without recompressing the JPEG, in .NET?

江枫思渺然 提交于 2019-12-21 06:19:18

问题


I have a JPEG image that I want to set an Exif header to (particularly, Author).

In .NET, I can do this relatively easy using GetPropertyItem and SetPropertyItem, but in order for that change to be persisted to the actual .JPG file, I need to Save it, which basically recompresses the image.

Is there any way to do this without recompressing?


回答1:


I believe exiv2net library (a .NET wrapper on top of exiv2) may be what you're looking for.



来源:https://stackoverflow.com/questions/1813676/how-can-i-write-an-exif-header-without-recompressing-the-jpeg-in-net

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!