IExif Interface
Defines base operations intended to work with EXIF metadata.

Namespace: GroupDocs.Metadata
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 19.5
Syntax
public interface IExif : IDisposable

The IExif type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleExifValues
Gets the EXIF metadata package associated with the file.
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Public methodGetExifInfo
Extracts the EXIF metadata package (if found).
Public methodGetGpsLocation
Gets GPS coordinates where the photo was taken.
Public methodRemoveExifInfo
Removes the existing EXIF metadata package.
Public methodRemoveGpsLocation
Removes GPS coordinates associated with the file.
Public methodUpdateExifInfo
Updates EXIF metadata.
Remarks
Exchangeable image file format (officially Exif, according to JEIDA/JEITA/CIPA specifications) allows to store tags metadata in different image and audio formats.
Examples
Extract EXIF metadata
C#
using (JpegFormat format = new JpegFormat(@"D:\input.jpg"))
{
    if (format.ExifValues != null)
    {
        Console.WriteLine(format.ExifValues.Artist);
        Console.WriteLine(format.ExifValues.Copyright);
        Console.WriteLine(format.ExifValues.ImageDescription);

        Console.WriteLine(format.ExifValues.ExifIfdData.CameraOwnerName);
        Console.WriteLine(format.ExifValues.ExifIfdData.UserComment);

        Console.WriteLine(format.ExifValues.GPSData.Satellites);
        Console.WriteLine(format.ExifValues.GPSData.Altitude);
        Console.WriteLine(format.ExifValues.GPSData.DateStamp);

        // ...
    }
}
See Also