Skip to content
A .Net Standard library for editing Exif metadata
C# PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation
ExifLibrary
ExifTest
.gitignore
.travis.yml
CONTRIB.md
ExifLibrary.sln
LICENSE
README.md
appveyor.yml
update documentation.ps1
update nuget package.ps1

README.md

License Nuget

Travis AppVeyor

ExifLibrary is a .Net Standard library for editing Exif metadata contained in image files.

Installation

If you are using NuGet you can install the assembly with:

PM> Install-Package ExifLibNet

Quick Start

To read an image file and extract metadata:

var file = ImageFile.FromFile("path_to_image");

// the type of the ISO speed rating tag value is unsigned short
// see documentation for tag data types
var isoTag = file.Properties.Get<ExifUShort>(ExifTag.ISOSpeedRatings);

// the flash tag's value is an enum
var flashTag = data.Properties.Get<ExifEnumProperty<Flash>>(ExifTag.Flash);

// GPS latitude is a custom type with three rational values
// representing degrees/minutes/seconds of the latitude 
var latTag = data.Properties.Get<GPSLatitudeLongitude>(ExifTag.GPSLatitude);

To add metadata:

var file = ImageFile.FromFile("path_to_image");
// note the explicit cast to ushort
file.Properties.Set(ExifTag.ISOSpeedRatings, <ushort>200);

To save the image with metadata:

file.Save("path_to_image");

Documentation

Please visit: http://oozcitak.github.io/exiflibrary/

You can’t perform that action at this time.