|
[C#]
string file = Server.MapPath("IG8_Metadata_Embed.jpg");
string src = Server.MapPath("rez/iptc.jpg");
File.Copy(src, file, true);
Metadata metadata = new Metadata(src);
metadata.Iptc.Add("Headline", true).Text = "Oxford University Ball";
metadata.Iptc.Add("Caption", true).Text = "What a laugh!";
metadata.Iptc.Embed(file);
The code reads the IPTC information from a JPEG file. It then
changes the headline and caption and embeds the changed information
into the original file.
|