Daniel Magliola
Daniel Magliola

Reputation: 32392

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

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?

Upvotes: 3

Views: 1222

Answers (1)

Pawel Marciniak
Pawel Marciniak

Reputation: 2228

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

Upvotes: 1

Related Questions