usmanazizgroupdocs
4/5/2016 - 6:19 AM

UpdateExifValuesUsingPropertiesJpegImage.cs

// 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));

// get EXIF data
JpegExifInfo exif = (JpegExifInfo)jpegFormat.ExifValues;

// set artist
exif.Artist = "new test artist";

// set the name of the camera's owner
exif.CameraOwnerName = "new camera owner's name";

// set description
exif.ImageDescription = "update test description";

// commit changes
jpegFormat.Save(Common.MapDestinationFilePath(filePath));