//For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize JpegFormat
JpegFormat jpegFormat = new JpegFormat(Common.MapSourceFilePath(filePath));
const string dcFormat = "test format";
string[] dcContributors = { "test contributor" };
const string dcCoverage = "test coverage";
const string phCity = "NY";
const string phCountry = "USA";
const string xmpCreator = "GroupDocs.Metadata";
jpegFormat.XmpValues.Schemes.DublinCore.Format = dcFormat;
jpegFormat.XmpValues.Schemes.DublinCore.Contributors = dcContributors;
jpegFormat.XmpValues.Schemes.DublinCore.Coverage = dcCoverage;
jpegFormat.XmpValues.Schemes.Photoshop.City = phCity;
jpegFormat.XmpValues.Schemes.Photoshop.Country = phCountry;
jpegFormat.XmpValues.Schemes.XmpBasic.CreatorTool = xmpCreator;
// commit changes
jpegFormat.Save(Common.MapDestinationFilePath(filePath));