{"id":13445625,"url":"https://github.com/drewnoakes/metadata-extractor-dotnet","last_synced_at":"2025-05-14T08:05:58.142Z","repository":{"id":1639115,"uuid":"37817574","full_name":"drewnoakes/metadata-extractor-dotnet","owner":"drewnoakes","description":"Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files","archived":false,"fork":false,"pushed_at":"2024-10-09T11:39:57.000Z","size":10168,"stargazers_count":991,"open_issues_count":74,"forks_count":179,"subscribers_count":45,"default_branch":"main","last_synced_at":"2025-05-07T09:54:21.571Z","etag":null,"topics":["camera-raw","dotnet","dotnet-core","exif","icc","iptc","jfif","jpeg","metadata","metadata-extractor","netpbm","netstandard","pcx","png","webp","xmp"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drewnoakes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-21T17:06:56.000Z","updated_at":"2025-04-29T08:55:09.000Z","dependencies_parsed_at":"2023-12-12T06:22:26.736Z","dependency_job_id":"8bd82402-0042-4766-8fc4-4a270900da22","html_url":"https://github.com/drewnoakes/metadata-extractor-dotnet","commit_stats":{"total_commits":1827,"total_committers":33,"mean_commits":55.36363636363637,"dds":"0.14833059660645864","last_synced_commit":"4151d4fe5eced6215457b8dd77a8796e228d5a3c"},"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewnoakes%2Fmetadata-extractor-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewnoakes%2Fmetadata-extractor-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewnoakes%2Fmetadata-extractor-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drewnoakes%2Fmetadata-extractor-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drewnoakes","download_url":"https://codeload.github.com/drewnoakes/metadata-extractor-dotnet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101615,"owners_count":22014909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera-raw","dotnet","dotnet-core","exif","icc","iptc","jfif","jpeg","metadata","metadata-extractor","netpbm","netstandard","pcx","png","webp","xmp"],"created_at":"2024-07-31T05:00:36.788Z","updated_at":"2025-05-14T08:05:53.132Z","avatar_url":"https://github.com/drewnoakes.png","language":"C#","funding_links":[],"categories":["Frameworks, Libraries and Tools","框架, 库和工具","Image Processing","图像处理"],"sub_categories":["Media","GUI - other"],"readme":"![metadata-extractor logo](https://raw.githubusercontent.com/drewnoakes/metadata-extractor/main/Resources/metadata-extractor-logo.svg)\n\n[![Build Status](https://github.com/drewnoakes/metadata-extractor-dotnet/actions/workflows/CI.yml/badge.svg)](https://github.com/drewnoakes/metadata-extractor-dotnet/actions/)\n[![MetadataExtractor NuGet version](https://img.shields.io/nuget/v/MetadataExtractor)](https://www.nuget.org/packages/MetadataExtractor/)\n[![MetadataExtractor NuGet download count](https://img.shields.io/nuget/dt/MetadataExtractor)](https://www.nuget.org/packages/MetadataExtractor/)\n\n_MetadataExtractor_ is a straightforward .NET library for reading metadata from image, movie and audio files.\n\n## Installation\n\nThe easiest way to use this library is via its [NuGet package](https://www.nuget.org/packages/MetadataExtractor/).\n\nEither add this to your project file\n\n```xml\n\u003cItemGroup\u003e\n    \u003cPackageReference Include=\"MetadataExtractor\" Version=\"2.8.1\" /\u003e\n\u003c/ItemGroup\u003e\n```\n\nOr type this in Visual Studio's Package Manager Console:\n\n```\nPM\u003e Install-Package MetadataExtractor\n```\n\nOr search for `MetadataExtractor` in the Visual Studio NuGet Package Manager.\n\n## Usage\n\n```csharp\nIEnumerable\u003cDirectory\u003e directories = ImageMetadataReader.ReadMetadata(imagePath);\n```\n\nThe resulting `directories` sequence holds potentially many different directories of metadata, depending upon the input image.\n\nTo print out all values from all directories:\n\n```csharp\nforeach (var directory in directories)\nforeach (var tag in directory.Tags)\n    Console.WriteLine($\"{directory.Name} - {tag.Name} = {tag.Description}\");\n```\n\nProducing:\n\n```text\nExif SubIFD - Exposure Time = 1/60 sec\nExif SubIFD - F-Number = f/8.0\n...\nExif IFD0 - Make = NIKON CORPORATION\nExif IFD0 - Model = NIKON D70\n...\nIPTC - Credit = Drew Noakes\nIPTC - City = London\n...\n```\n\nAccess a specific value, in this case the Exif DateTime tag:\n\n```csharp\nvar subIfdDirectory = directories.OfType\u003cExifSubIfdDirectory\u003e().FirstOrDefault();\nvar dateTime = subIfdDirectory?.GetDescription(ExifDirectoryBase.TagDateTime);\n```\n\n## Features\n\nThe library understands several formats of metadata, many of which may be present in a single image:\n\n* [Exif](http://en.wikipedia.org/wiki/Exchangeable_image_file_format)\n* [IPTC](http://en.wikipedia.org/wiki/IPTC)\n* [XMP](http://en.wikipedia.org/wiki/Extensible_Metadata_Platform)\n* [JFIF / JFXX](http://en.wikipedia.org/wiki/JPEG_File_Interchange_Format)\n* [ICC Profiles](http://en.wikipedia.org/wiki/ICC_profile)\n* [Photoshop](https://en.wikipedia.org/wiki/Adobe_Photoshop)\n\nIt supports various file types.\n\n* Images\n  * [AVIF](https://en.wikipedia.org/wiki/AVIF)\n  * [BMP](https://en.wikipedia.org/wiki/BMP_file_format)\n  * [DNG](https://en.wikipedia.org/wiki/Digital_Negative)\n  * [EPS](https://en.wikipedia.org/wiki/Encapsulated_PostScript)\n  * [GIF](http://en.wikipedia.org/wiki/Graphics_Interchange_Format)\n  * [HEIF](https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format) / [HEIC](https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format#HEIC:_HEVC_in_HEIF)\n  * [ICO](https://en.wikipedia.org/wiki/ICO_(file_format))\n  * [JPEG](https://en.wikipedia.org/wiki/JPEG) / [JFIF](https://en.wikipedia.org/wiki/JPEG_File_Interchange_Format)\n  * [Netpbm](https://en.wikipedia.org/wiki/Netpbm_format)\n  * [PCX](http://en.wikipedia.org/wiki/PCX)\n  * [PNG](http://en.wikipedia.org/wiki/Portable_Network_Graphics)\n  * [PSD]([url](https://en.wikipedia.org/wiki/Adobe_Photoshop#File_format))\n  * [TGA](https://en.wikipedia.org/wiki/Truevision_TGA)\n  * [TIFF]([url](https://en.wikipedia.org/wiki/TIFF)) / [BigTIFF]([url](https://en.wikipedia.org/wiki/TIFF#BigTIFF))\n  * [WebP](http://en.wikipedia.org/wiki/WebP)\n  * [Camera Raw](https://en.wikipedia.org/wiki/Raw_image_format)\n    * 3FR (Hasselblad)\n    * [ARW](https://en.wikipedia.org/wiki/Sony_%CE%B1) (Sony)\n    * CRW / CR2 / CRX (Canon)\n    * GPR (GoPro)\n    * KDC (Kodak)\n    * NEF (Nikon)\n    * [ORF](https://en.wikipedia.org/wiki/ORF_format) (Olympus)\n    * PEF (Pentax)\n    * RAF (Fujifilm)\n    * RW2 (Panasonic)\n    * RWL (Leica)\n    * SRW (Samsung)\n\n* Movies\n  * [AVCI](https://en.wikipedia.org/wiki/Advanced_Video_Coding)\n  * [AVI](https://en.wikipedia.org/wiki/Audio_Video_Interleave)\n  * [MOV](https://en.wikipedia.org/wiki/QuickTime_File_Format) (QuickTime)\n  * [MP4](https://en.wikipedia.org/wiki/MP4_file_format)\n\n* Audio\n  * [WAV](https://en.wikipedia.org/wiki/WAV)\n  * [MP3](https://en.wikipedia.org/wiki/MP3)\n\nCamera-specific \"makernote\" data is decoded for cameras manufactured by:\n\n* Agfa\n* Apple\n* Canon\n* Casio\n* DJI\n* Epson\n* FLIR\n* Fujifilm\n* Kodak\n* Kyocera\n* Leica\n* Minolta\n* Nikon\n* Olympus\n* Panasonic\n* Pentax\n* Reconyx\n* Ricoh\n* Samsung\n* Sanyo\n* Sigma/Foveon\n* Sony\n\n## Supported Frameworks\n\nThis library targets:\n\n- .NET 8.0 (`net8.0`)\n- .NET Framework 4.6.2 (`net462`)\n- .NET Standard 1.3 (`netstandard1.3`)\n- .NET Standard 2.1 (`netstandard2.1`)\n\nAll target frameworks are provided via the [one NuGet package](https://www.nuget.org/packages/MetadataExtractor).\n\n`net8.0` implements .NET 8, including support for NativeAOT.\n\n`netstandard1.3` implements version 1.3 of the [.NET Standard](https://docs.microsoft.com/en-us/dotnet/articles/standard/library) which covers .NET Core, Mono, Xamarin platforms, UWP, and future platforms. \n\n`netstandard2.1` implements version 2.1 of the .NET Standard, which uses newer APIs where possible.\n\n`net462` targets the full .NET Framework, from version 4.6.2 onwards.\n\nA PCL build was supported until [version 1.5.3](https://www.nuget.org/packages/MetadataExtractor/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.\n\nA `net3.5` build was supported until [version 2.8.1](https://www.nuget.org/packages/MetadataExtractor/2.8.1). Support for this framework was dropped in early 2024 to enable use of newer, more efficient, .NET APIs.\n\n## Building\n\nBuilding 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.\n\nThe library itself, once built, may be consumed from projects in much earlier versions of Visual Studio.\n\n## Questions \u0026 Feedback\n\nThe quickest way to have your questions answered is via [Stack Overflow](http://stackoverflow.com/questions/tagged/metadata-extractor).\nCheck whether your question has already been asked, and if not, ask a new one tagged with both `metadata-extractor` and `.net`.\n\nBugs and feature requests should be provided via the project's [issue tracker](https://github.com/drewnoakes/metadata-extractor-dotnet/issues).\nPlease attach sample images where possible as most issues cannot be investigated without an image.\n\n## Contributing\n\nIf you want to get your hands dirty, making a pull request is a great way to enhance the library.\nIn general it's best to create an issue first that captures the problem you want to address.\nYou can discuss your proposed solution in that issue.\nThis gives others a chance to provide feedback before you spend your valuable time working on it.\n\nAn easier way to help is to contribute to the [sample image file library](https://github.com/drewnoakes/metadata-extractor-images/wiki) used for research and testing.\n\n## Credits\n\nThis library is developed by [Drew Noakes](https://drewnoakes.com/code/exif/) and contributors.\n\nThanks are due to the many [users](https://github.com/drewnoakes/metadata-extractor/wiki/UsedBy) who sent in suggestions, bug reports,\n[sample images](https://github.com/drewnoakes/metadata-extractor-images/wiki) from their cameras as well as encouragement.\nWherever possible, they have been credited in the source code and commit logs.\n\nThis library was [originally written in Java](https://github.com/drewnoakes/metadata-extractor/) in 2002.\nIn 2014, Yakov Danilov (for Imazen LLC) converted the code to C# using Sharpen.\nThe code has subsequently been edited to provide a more idiomatic .NET API.\nBoth projects are now developed in unison and aim to be functionally equivalent.\n\n## Other languages\n\n- Java  [metadata-extractor](https://github.com/drewnoakes/metadata-extractor) is the original implementation of this project, from which this .NET version was ported\n- PHP [php-metadata-extractor](https://github.com/gomoob/php-metadata-extractor) wraps the Java project, making it available to users of PHP\n\n---\n\nMore information about this project is available at:\n\n* https://drewnoakes.com/code/exif/\n* https://github.com/drewnoakes/metadata-extractor-dotnet/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewnoakes%2Fmetadata-extractor-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrewnoakes%2Fmetadata-extractor-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrewnoakes%2Fmetadata-extractor-dotnet/lists"}