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

New Post: IPTC tags

$
0
0
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);
  }
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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