![]() |
VOOZH | about |
dotnet add package MetadataExtractor --version 2.9.3
NuGet\Install-Package MetadataExtractor -Version 2.9.3
<PackageReference Include="MetadataExtractor" Version="2.9.3" />
<PackageVersion Include="MetadataExtractor" Version="2.9.3" />Directory.Packages.props
<PackageReference Include="MetadataExtractor" />Project file
paket add MetadataExtractor --version 2.9.3
#r "nuget: MetadataExtractor, 2.9.3"
#:package MetadataExtractor@2.9.3
#addin nuget:?package=MetadataExtractor&version=2.9.3Install as a Cake Addin
#tool nuget:?package=MetadataExtractor&version=2.9.3Install as a Cake Tool
👁 Build Status
👁 MetadataExtractor NuGet version
👁 MetadataExtractor NuGet download count
MetadataExtractor is a straightforward .NET library for reading metadata from image, movie and audio files.
The easiest way to use this library is via its NuGet package.
Either add this to your project file
<ItemGroup>
<PackageReference Include="MetadataExtractor" Version="2.9.1" />
</ItemGroup>
Or type this in Visual Studio's Package Manager Console:
PM> Install-Package MetadataExtractor
Or search for MetadataExtractor in the Visual Studio NuGet Package Manager.
IEnumerable<Directory> directories = ImageMetadataReader.ReadMetadata(imagePath);
The resulting directories sequence holds potentially many different directories of metadata, depending upon the input image.
To print out all values from all directories:
foreach (var directory in directories)
foreach (var tag in directory.Tags)
Console.WriteLine($"{directory.Name} - {tag.Name} = {tag.Description}");
Producing:
Exif SubIFD - Exposure Time = 1/60 sec
Exif SubIFD - F-Number = f/8.0
...
Exif IFD0 - Make = NIKON CORPORATION
Exif IFD0 - Model = NIKON D70
...
IPTC - Credit = Drew Noakes
IPTC - City = London
...
Access a specific value, in this case the Exif DateTime tag:
var subIfdDirectory = directories.OfType<ExifSubIfdDirectory>().FirstOrDefault();
var dateTime = subIfdDirectory?.GetDescription(ExifDirectoryBase.TagDateTime);
The library understands several formats of metadata, many of which may be present in a single image:
It supports various file types.
Images
Movies
Audio
Camera-specific "makernote" data is decoded for cameras manufactured by:
This library targets:
net8.0)netstandard2.0)netstandard2.1)All target frameworks are provided via the one NuGet package.
net8.0 implements .NET 8, including support for NativeAOT.
netstandard2.0 implements version 2.0 of the .NET Standard which covers .NET Framework and .NET Core.
netstandard2.1 implements version 2.1 of the .NET Standard, which uses newer APIs where possible.
<details> <summary>Support for older targets in previous versions</summary>
A PCL build was supported until version 1.5.3 which supported Silverlight 5.0, Windows 8.0, Windows Phone 8.1 and Windows Phone Silverlight 8.0. PCL versions did not support file-system metadata due to restricted IO APIs.
A netstandard1.3 build was supported until version 2.8.1. Support for this framework was dropped in mid 2025 in response to Microsoft advisory NETSDK1215 (since .NET SDK 9).
A net462 build was supported until version 2.8.1. This target became obsolete with the introduction of netstandard2.0.
A net3.5 build was supported until version 2.8.1. Support for this framework was dropped in early 2024 to enable use of newer, more efficient, .NET APIs.
</details>
Building this repo requires a recent version of Visual Studio 2022. Ensure you have the .NET Core Development Tools workload installed via the Visual Studio Installer.
The library itself, once built, may be consumed from projects in much earlier versions of Visual Studio.
The quickest way to have your questions answered is via Stack Overflow.
Check whether your question has already been asked, and if not, ask a new one tagged with both metadata-extractor and .net.
Bugs and feature requests should be provided via the project's issue tracker. Please attach sample images where possible as most issues cannot be investigated without an image.
If you want to get your hands dirty, making a pull request is a great way to enhance the library. In general it's best to create an issue first that captures the problem you want to address. You can discuss your proposed solution in that issue. This gives others a chance to provide feedback before you spend your valuable time working on it.
An easier way to help is to contribute to the sample image file library used for research and testing.
This library is developed by Drew Noakes and contributors.
Thanks are due to the many users who sent in suggestions, bug reports, sample images from their cameras as well as encouragement. Wherever possible, they have been credited in the source code and commit logs.
This library was originally written in Java in 2002. In 2014, Yakov Danilov (for Imazen LLC) converted the code to C# using Sharpen. The code has subsequently been edited to provide a more idiomatic .NET API. Both projects are now developed in unison and aim to be functionally equivalent.
More information about this project is available at:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on MetadataExtractor:
| Package | Downloads |
|---|---|
|
FenixAlliance.ACL.Dependencies
Application Component for the Alliance Business Suite. |
|
|
MudBlazor.Extensions
MudBlazor.Extensions is a small extension library for MudBlazor from https://mudblazor.com/ |
|
|
Apalla.Bubu.Shared
Bubu is application framework to easily build crossplatform applications. Apalla.Bubu.Shared contains general classes for all application types and platforms. |
|
|
Dynamicweb.Admin
Package Description |
|
|
DMISharp
Library for handling BYOND DMI files. |
Showing the top 16 popular GitHub repositories that depend on MetadataExtractor:
| Repository | Stars |
|---|---|
|
LykosAI/StabilityMatrix
Multi-Platform Package Manager for Stable Diffusion
|
|
|
ElevenPaths/FOCA
Tool to find metadata and hidden information in the documents.
|
|
| starik222/BooruDatasetTagManager | |
|
Webreaper/Damselfly
Damselfly is a server-based Photograph Management app. The goal of Damselfly is to index an extremely large collection of images, and allow easy search and retrieval of those images, using metadata such as the IPTC keyword tags, as well as the folder and file names. Damselfly includes support for object/face detection.
|
|
|
statiqdev/Statiq
Statiq is a flexible static site generator written in .NET.
|
|
|
n00mkrad/text2image-gui
Somewhat modular text2image GUI, initially just for Stable Diffusion
|
|
|
neelabo/NeeView
An image viewer that allows you to browse images in folders and compressed files like a book. Powerful customization is available.
|
|
|
statiqdev/Statiq.Framework
A flexible and extensible static content generation framework for .NET.
|
|
|
fgilde/MudBlazor.Extensions
MudBlazor.Extensions from https://www.mudex.org is a small extension for MudBlazor from https://mudblazor.com
|
|
|
MediaPortal/MediaPortal-1
Home Theater and Digital Video Recording solution for Windows.
|
|
|
Geektoolkit/Dynaframe3
Dynamic Photo and Video Slideshow system for SBC (such as Raspberry pi)
|
|
|
Cryolitia/PhotoTimeFix
An easy program aimed to fix photo's timestamp incorrect by filename/Exif
|
|
|
dimonovdd/Xamarin.MediaGallery
This plugin is designed to picking and save images and video files from native gallery of Android and iOS devices and capture photos
|
|
|
Wyamio/Wyam
A modular static content and static site generator.
|
|
|
f-shake/ArchiveMaster
一套协助用户对文件进行处理、管理、备份、同步的工具集;A toolkit designed to assist users in processing, managing, backing up, and synchronizing files.
|
|
|
Dixin/Blog
Code examples for blog https://weblogs.asp.net/dixin.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.9.3 | 171,987 | 4/8/2026 |
| 2.9.2 | 73,589 | 3/18/2026 |
| 2.9.1 | 3,191 | 3/17/2026 |
| 2.9.0 | 575,765 | 10/6/2025 |
| 2.9.0-rc3 | 10,465 | 8/5/2025 |
| 2.9.0-rc2 | 45,788 | 3/21/2024 |
| 2.9.0-rc1 | 4,193 | 1/29/2024 |
| 2.8.1 | 2,971,257 | 8/21/2023 |
| 2.8.0 | 432,299 | 5/8/2023 |
| 2.7.3 | 22,667 | 5/1/2023 |
| 2.7.2 | 2,061,657 | 3/17/2022 |
| 2.7.1 | 544,425 | 9/20/2021 |
| 2.7.0 | 197,244 | 8/3/2021 |
| 2.6.0 | 57,785 | 6/24/2021 |
| 2.5.0 | 251,858 | 5/9/2021 |
| 2.4.3 | 626,912 | 7/19/2020 |
| 2.4.2 | 108,534 | 5/13/2020 |
| 2.4.1 | 3,339 | 5/11/2020 |
| 2.4.0 | 4,314 | 5/5/2020 |
| 2.3.1 | 38,014 | 4/12/2020 |