Show / Hide Table of Contents

Reading Image Files

To read an image file you can use the FromFile(String) and FromStream(Stream) static methods:

var file = ImageFile.FromFile("path_to_image");
foreach(var property in file.Properties)
{
    Console.WriteLine(property.Name);
}

There are also asynchronous versions of these methods:

ExifLibrary.ImageFile.FromFileAsync("path_to_image").ContinueWith(t =>
{
    var file = t.Result;
    foreach(var property in file.Properties)
    {
        Console.WriteLine(property.Name);
    }
});
Back to top Copyright © 2019 Özgür Özçıtak