问题
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