All Projects → drewnoakes → Metadata Extractor Dotnet

drewnoakes / Metadata Extractor Dotnet

Licence: other
Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files

Projects that are alternatives of or similar to Metadata Extractor Dotnet

Metadata Extractor
Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Stars: ✭ 1,972 (+280.69%)
Mutual labels:  webp, metadata, png, jpeg, exif
Sharp
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
Stars: ✭ 21,131 (+3979.34%)
Mutual labels:  webp, png, jpeg, exif
Exif Py
Easy to use Python module to extract Exif metadata from digital image files.
Stars: ✭ 561 (+8.3%)
Mutual labels:  webp, metadata, jpeg, exif
sail
The missing small and fast image decoding library for humans (not for machines) ⛵ https://sail.software
Stars: ✭ 206 (-60.23%)
Mutual labels:  png, jpeg, webp
imagecodecs
Image transformation, compression, and decompression codecs. Forked from https://pypi.org/project/imagecodecs
Stars: ✭ 56 (-89.19%)
Mutual labels:  png, jpeg, webp
gfxprim
Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.
Stars: ✭ 32 (-93.82%)
Mutual labels:  png, jpeg, webp
Next Img
A Next.js plugin for embedding optimized images.
Stars: ✭ 149 (-71.24%)
Mutual labels:  webp, png, jpeg
create-optimize-images
♻️ Reusable, scalable, bash scripts to create and optimize images.
Stars: ✭ 39 (-92.47%)
Mutual labels:  png, jpeg, webp
wa-sticker-formatter
Sticker Creator for WhatsApp
Stars: ✭ 60 (-88.42%)
Mutual labels:  png, exif, webp
Imaginary
Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
Stars: ✭ 4,107 (+692.86%)
Mutual labels:  webp, png, jpeg
Automator Workflows
A collection of Automator workflows (services) that speed up your design / development process. Compatible with LaunchBar 6 and 7 Actions
Stars: ✭ 439 (-15.25%)
Mutual labels:  webp, png, jpeg
video thumbnail
This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
Stars: ✭ 159 (-69.31%)
Mutual labels:  png, jpeg, webp
Imageprocessor
📷 A fluent wrapper around System.Drawing for the processing of image files.
Stars: ✭ 2,452 (+373.36%)
Mutual labels:  webp, png, jpeg
Piexif
Exif manipulation with pure python script.
Stars: ✭ 290 (-44.02%)
Mutual labels:  webp, jpeg, exif
Mort
Storage and image processing server written in Go
Stars: ✭ 420 (-18.92%)
Mutual labels:  webp, png, jpeg
Govips
A lightning fast image processing and resizing library for Go
Stars: ✭ 442 (-14.67%)
Mutual labels:  webp, png, jpeg
Exifr
📷 The fastest and most versatile JS EXIF reading library.
Stars: ✭ 448 (-13.51%)
Mutual labels:  metadata, png, exif
Bimg
Go package for fast high-level image processing powered by libvips C library
Stars: ✭ 1,394 (+169.11%)
Mutual labels:  webp, png, jpeg
Lilliput
Resize images and animated GIFs in Go
Stars: ✭ 1,690 (+226.25%)
Mutual labels:  webp, png, jpeg
imagor
Fast, Docker-ready image processing server in Go and libvips
Stars: ✭ 2,276 (+339.38%)
Mutual labels:  png, jpeg, webp

metadata-extractor logo

Build Status MetadataExtractor NuGet version MetadataExtractor Nuget download count

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.4.3" />
</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:

It supports various file types.

  • Images

    • BMP
    • EPS
    • GIF
    • HEIF / HEIC
    • ICO
    • JPEG / JFIF
    • Netpbm
    • PCX
    • PNG
    • PSD
    • TGA
    • TIFF
    • 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

Camera-specific "makernote" data is decoded for cameras manufactured by:

  • Agfa
  • Apple
  • Canon
  • Casio
  • DJI
  • Epson
  • 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

If using Visual Studio to compile this repo, ensure you have the .NET Core Development Tools workload installed. This can be verified and corrected using the Visual Studio Installer in VS2017 and later.

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:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].