MetadataExtractor alternatives and similar packages
Based on the "Image Processing" category.
Alternatively, view MetadataExtractor alternatives based on common mentions on social networks and blogs.
-
ImageProcessor
DISCONTINUED. :camera: A fluent wrapper around System.Drawing for the processing of image files. -
SimpleITK
SimpleITK: a layer built on top of the Insight Toolkit (ITK), intended to simplify and facilitate ITK's use in rapid prototyping, education and interpreted languages. -
PixelViewer
A cross-platform image viewer which supports reading raw Luminance/YUV/RGB/ARGB/Bayer pixels data from file and rendering it. -
ImageWizard
Image processing webservice based on ASP.NET Core and ImageSharp / SkiaSharp / SvgNet / DocNET -
ImageUltimate
ImageUltimate is an ASP.NET Image resizer and a .NET Image Processor which supports ASP.NET Core 5.0+, ASP.NET Core 2.1+, ASP.NET MVC 3.0+ and ASP.NET WebForms 4.7.2+ web applications/web sites. -
TeximpNet
A cross-platform .NET Standard library for reading/manipulating/writing image files. The primary focus is to create 2D/3D/Cubemap textures for graphics/game applications, notably to convert images to GPU compressed formats and generate mipmaps. The library wraps the FreeImage native library to import/export over 30 common image formats, and wraps the Nvidia Texture Tools native library for GPU compression features. It also has a fully featured DDS format importer/exporter written in C#.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of MetadataExtractor or a related project?
README
MetadataExtractor is a straightforward .NET library for reading metadata from image, movie and audio files.
Installation
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.7.2" />
</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.
Usage
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);
Features
The library understands several formats of metadata, many of which may be present in a single image:
- Exif
- IPTC
- XMP
- JFIF / JFXX
- ICC Profiles
- Photoshop fields
- WebP properties
- Netpbm properties
- PNG properties
- BMP properties
- GIF properties
- ICO properties
- PCX properties
It supports various file types.
Images
- BMP
- EPS
- GIF
- HEIF / HEIC
- ICO
- JPEG / JFIF
- Netpbm
- PCX
- PNG
- PSD
- TGA
- TIFF / BigTIFF
- WebP
- Camera Raw
- ARW (Sony)
- CR2 (Canon)
- NEF (Nikon)
- ORF (Olympus)
- RW2 (Panasonic)
- RWL (Leica)
- SRW (Samsung)
Movies
- AVCI
- AVI
- MOV (QuickTime)
- MP4
Audio
- WAV
- MP3
Camera-specific "makernote" data is decoded for cameras manufactured by:
- Agfa
- Apple
- Canon
- Casio
- DJI
- Epson
- FLIR
- Fujifilm
- Kodak
- Kyocera
- Leica
- Minolta
- Nikon
- Olympus
- Panasonic
- Pentax
- Reconyx
- Sanyo
- Sigma/Foveon
- Sony
Supported Frameworks
This library targets:
- .NET Framework 3.5 (
net35
) - .NET Framework 4.5 (
net45
) - .NET Standard 1.3 (
netstandard1.3
) - .NET Standard 2.0 (
netstandard2.0
)
All target frameworks are provided via the one NuGet package.
net35
and net45
target the full .NET Framework. net45
uses the newer IReadOnlyList<>
on some public APIs where net35
uses IList<>
. Internally net45
also uses some newer library features for slightly improved performance.
netstandard1.3
implements version 1.3 of the .NET Standard which covers .NET Core, Mono, Xamarin platforms, UWP, and future platforms.
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.
Building
Building this repo requires a recent version of Visual Studio 2019. 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.
Questions & Feedback
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.
Contributing
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.
Credits
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.
Other languages
- Java metadata-extractor is the original implementation of this project, from which this .NET version was ported
- PHP php-metadata-extractor wraps the Java project, making it available to users of PHP
More information about this project is available at: