Jump to content

png metadata


Katai

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...