ExifLibNet.Updated
2.1.5
dotnet add package ExifLibNet.Updated --version 2.1.5
NuGet\Install-Package ExifLibNet.Updated -Version 2.1.5
<PackageReference Include="ExifLibNet.Updated" Version="2.1.5" />
paket add ExifLibNet.Updated --version 2.1.5
#r "nuget: ExifLibNet.Updated, 2.1.5"
// Install ExifLibNet.Updated as a Cake Addin #addin nuget:?package=ExifLibNet.Updated&version=2.1.5 // Install ExifLibNet.Updated as a Cake Tool #tool nuget:?package=ExifLibNet.Updated&version=2.1.5
This is an updated fork of ExifLibrary, a .Net Standard and .NET library for editing Exif metadata contained in image files.
It mainly removes the dependency on netstandard1.3
to avoid pulling in loads of dependencies and has merged a PR for better DateTime parsing.
Installation
If you are using NuGet you can install it with:
PM> Install-Package ExifLibNet.Updated
Quick Start
To read an image file and extract metadata:
var file = ImageFile.FromFile("path_to_image");
// the type of the ISO speed rating tag value is unsigned short
// see documentation for tag data types
var isoTag = file.Properties.Get<ExifUShort>(ExifTag.ISOSpeedRatings);
// the flash tag's value is an enum
var flashTag = file.Properties.Get<ExifEnumProperty<Flash>>(ExifTag.Flash);
// GPS latitude is a custom type with three rational values
// representing degrees/minutes/seconds of the latitude
var latTag = file.Properties.Get<GPSLatitudeLongitude>(ExifTag.GPSLatitude);
To add metadata:
var file = ImageFile.FromFile("path_to_image");
// note the explicit cast to ushort
file.Properties.Set(ExifTag.ISOSpeedRatings, <ushort>200);
//for pngs
var pngText = new PngText(ExifTag.PNGTagName, ...)
file.Properties.Set(pngText)
To save the image with metadata:
file.Save("path_to_image");
Documentation
Please visit: http://oozcitak.github.io/exiflibrary/
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.