usmanazizgroupdocs
4/5/2016 - 6:18 AM

RemoveGPSDataJpegImage.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 location
GpsLocation location = jpegFormat.GetGpsLocation();
if (location != null)
{
    // remove GPS location
    jpegFormat.RemoveGpsLocation();
}

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