You could do something like this:
staticvoid AlterXmpProfile(MagickImage image) { XmpProfile profile = image.GetXmpProfile(); XDocument doc = profile.ToXDocument(); // Alter the document; profile = XmpProfile.FromXDocument(doc); image.AddProfile(profile); } staticvoid AlterIptcProfile(MagickImage image) { IptcProfile profile = image.GetIptcProfile(); // Alter the profile image.AddProfile(profile); } staticvoid SetCopyright(string fileName) { using (MagickImage image = new MagickImage(fileName)) { AlterXmpProfile(image); AlterIptcProfile(image); image.Write(fileName); } }