Skip to content

Possible to add Png metadata in Chunks? Baking images? #1525

Answered by brianpopow
siva538 asked this question in Q&A
Discussion options

You must be logged in to vote

you can add text data to png images like this:

using (var image = Image.Load(@"foobar.png"))
{
    PngMetadata inputMetadata = image.Metadata.GetFormatMetadata(PngFormat.Instance);
    inputMetadata.TextData.Add(new PngTextData("keyword", "example", "en-uk", "text"));
    image.Save("output.png");
}

I do not understand what you mean by "baking images"

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@siva538
Comment options

@JimBobSquarePants
Comment options

Answer selected by siva538
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants