Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write metadata to PNG image in .NET

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?

like image 736
Sukasa Avatar asked Nov 06 '22 10:11

Sukasa


1 Answers

You could use the FreeImage.NET library, which I believe can both read and write PNG files, as well as their metadata.

like image 129
LBushkin Avatar answered Nov 15 '22 08:11

LBushkin