Class ImageMetadataReader

ImageMetadataReader class

Class for editing, adding some EXIF tags

public class ImageMetadataReader : IDisposable

Methods

NameDescription
static GetReader(Stream)Creates a reader instance for EXIF tags
static GetReader(string)Creates a reader instance for EXIF tags
Dispose()Public implementation of Dispose pattern callable by consumers.
ReadData()Extracts all supported EXIF tags
Save(Stream)Saving changes to a separate stream
Save(string)Save to new file since the original one is locked for changes
Save(Stream, ImageFormat)Saving changes to a separate stream
Save(string, ImageFormat)Save to new file since the original one is locked for changes
SetArtist(string)Saving the EXIF Artist tag, adding or overwriting the data.
SetDescription(string)Saving the EXIF ImageDescription tag, adding or overwriting the data.
SetGeoLocation(double, double)Saving the EXIF GPSLatitudeRef, GPSLongitudeRef, GPSLatitude and GPSLongitude tags, adding or overwriting the data.
SetImageSize(int, int)Saving the EXIF ImageWidth and ImageHeight tags, adding or overwriting the data.
SetModifyDate(DateTime)Saving the EXIF ModifyDate (DataTime) tag, adding or overwriting the data.
TryGetArtist(out string)It tries to find EXIF tag Artist, if the tag is not found it returns null
TryGetDescription(out string)It tries to find EXIF tag ImageDescription, if the tag is not found it returns null
TryGetGeoLocation(out GeoLocation)It tries to find EXIF set of tags GPSLatitudeRef, GPSLongitudeRef, GPSLatitude, GPSLongitude, if the tags does not presented it returns null
TryGetImageSize(out ImageSize)It tries to find EXIF set of tags ImageWidth and ImageHeight, if the tags does not presented it returns null
TryGetModifyDate(out DateTime)It tries to find EXIF tag ModifyDate (DataTime), if the tag is not found it returns default DataTime value

See Also