1. Products
  2.   Image
  3.   .NET
  4.   Taglib-Sharp
 
  

.NET Library for Manipulating Image Documents

Read & Write Metadata of Image File Format.

What is Taglib-Sharp?

As a developer, have you ever had to extract metadata or write metadata to image file formats? There is a bunch of open-source and APIs available for image manipulation. Taglib-Sharp is one of them. The open-source API is developed for reading and writing metadata in Image file formats. Using the API, you can read & write standard tags of Image file format and can also create and extract metadata of custom tags.

TagLib-Sharp in free software released under the LGPL. The developer can create their own metadata extraction & creation applications using the API. The developers can work with a wide range of Image file formats for metadata manipulation.

Previous Next

Getting Started with Taglib-Sharp

The best way to install Taglib-Sharp is via NuGet; you can run the following command and install Taglib-Sharp in your application.

Install Taglib-Sharp from NuGet

 Install-Package Taglib-Sharp

Extract Metadata Tags from Image via Free .NET API

Taglib-Sharp allows .NET programmers to extract metadata tags from Image file formats easily. The API allows getting a bunch of image tags including, Rating, DateTime, Orientation, Software, ExposureTime, FNumber, ISOSpeedRatings, FocalLength, FocalLength35mm, Make, Model, and more. In order to get any property, you need to load the Image file using TagLib.File.Create() method and read tag e.g Make using Image.ImageTag.Make property.

Extract Metadata from Images via Free C# API

  1. Create a new client
  2. Convert DOCX to Text using client.ConvertPath() and pass file path as parameter
  3. Check for errors
  4. Print plain text

Free API to Extract Metadata from Images

// load file
var image = TagLib.File.Create("fileformat.png");
// get camera maker
string make = image.ImageTag.Make;
// get camera model
string model = image.ImageTag.Model;
// print properties
Console.WriteLine("Make: {0}, Model: {1}", title, model);
                  
 English