GroupDocsGists
10/19/2017 - 11:32 AM

GetExifPropertiesTiffImage.cs

//For complete examples and data files, please go to https://github.com/groupdocsmetadata/GroupDocs_Metadata_NET
// initialize TiffFormat
TiffFormat tiffFormat = new TiffFormat(Common.MapSourceFilePath(filePath));

// get EXIF data
ExifInfo exif = tiffFormat.GetExifInfo();

if (exif != null)
{
    // get BodySerialNumber 
    Console.WriteLine("Body Serial Number: {0}", exif.BodySerialNumber);
    // get CameraOwnerName 
    Console.WriteLine("Camera Owner Name: {0}", exif.CameraOwnerName);
    // get CFAPattern 
    Console.WriteLine("CFA Pattern: {0}", exif.CFAPattern);
    // get GPSData 
    Console.WriteLine("GPS Data: {0}", exif.GPSData);
    // get UserComment 
    Console.WriteLine("User Comment: {0}", exif.UserComment); 
}