I want to be able to write a huge amount of metadata to a jpeg but .NET is fighting me. I'm to the point where I wonder if it would be easier to just modify the bytes myself. There's no image.Metadata.Comment = "My comment";
, I can't find any projects that do it for you (See this answer), Microsoft's documentation is confusing, another StackOverflow post led to this article which when you get to the end you find out it doesn't show you how to actually write metadata, and this code by John P works but if you try to add a lot of characters you get the error System.IO.FileFormatException: Commit unsuccessful because too much metadata changed.
.
So pretty much nothing is working at all. I want to add a comment, of any length, to my jpeg. So if the jpeg itself is 1.3MB I want to be able to add a comment so long that the jpeg becomes 10MB.