Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: How to set tEXT chunk in PNG files?

$
0
0
For a project I'm working on, I'm using Magick.NET to save PNG files that are smaller than what the default .NET encoder will save. One of the requirements is that I need to be able to set a few different tEXT comments in PNG files when I save the files. I found the MagickImage.Comment property, but that sets a tEXT chunk with Key = "Comment" and value equal to what I set in MagickImage.Comment.

Is there any way to set multiple such tEXT chunks, each with a different key name and value?

Also, after I've done that, is there any way to read this info back using Magick.NET? Well, in the worst case, I think I can read the info using the .NET PNG decoder, but I still need a way to write that info to the PNG file.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>