I see more than a few questions asking how to read metadata from an image, but I haven't seen as many asking how to write metadata. Basically, I need to add one item of metadata ("ImageDescription") to a PNG image I'm generating dynamically (creating a Bitmap object and procedurally generating all the content in it).
What would be the best way to add metadata to an image with .NET either before or just after writing the file to disk?
You could use the FreeImage.NET library, which I believe can both read and write PNG files, as well as their metadata.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With