// 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.GetExifInfo();
if (exif == null)
{
// initialize EXIF data if null
exif = new JpegExifInfo();
}
// set artist
exif.Artist = "Usman";
// set make
exif.Make = "ABC";
// set model
exif.Model = "S120";
// set the name of the camera's owner
exif.CameraOwnerName = "Owner";
// set description
exif.ImageDescription = "sample description";
// update EXIF data
jpegFormat.SetExifInfo(exif);
// commit changes
jpegFormat.Save(Common.MapDestinationFilePath(filePath));