Katai Posted February 13, 2013 Posted February 13, 2013 I'm trying to write PNG file with metadata using a custom Filetype Plugin, and I'm just completely blocked. I just cannot figure out any way to read/write PNG metadata within C#. I've tried PngBitmapDecoder examples I've found, but the examples don't work at all. I've also tried PNGCS library and that doesn't seem to work either. Does anyone have any ideas on how to write metadata to a PNG file? Quote
Ego Eram Reputo Posted February 13, 2013 Posted February 13, 2013 Just as an aside: I think you're going to need to use a custom extension when saving. Otherwise the native PNG format is always going to overwrite your filetype. See how the Animated GIF/PNG plugin uses *.AGIF and *.APNG respectively to avoid this issue. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker
Katai Posted February 13, 2013 Author Posted February 13, 2013 Yes, I already have that setup (I'm using spng). I just have no idea how to get metadata on the PNG Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.