Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oozcitak/exiflibrary
A .Net Standard library for editing Exif metadata
https://github.com/oozcitak/exiflibrary
exif exif-metadata image
Last synced: 2 days ago
JSON representation
A .Net Standard library for editing Exif metadata
- Host: GitHub
- URL: https://github.com/oozcitak/exiflibrary
- Owner: oozcitak
- License: mit
- Created: 2015-05-07T06:38:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T13:07:11.000Z (10 months ago)
- Last Synced: 2024-10-29T19:03:11.159Z (3 months ago)
- Topics: exif, exif-metadata, image
- Language: C#
- Homepage:
- Size: 6.23 MB
- Stars: 134
- Watchers: 12
- Forks: 48
- Open Issues: 37
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![License](http://img.shields.io/npm/l/xmlbuilder.svg?style=flat-square)](http://opensource.org/licenses/MIT)
[![Nuget](https://img.shields.io/nuget/v/ExifLibNet.svg?style=flat-square)](https://www.nuget.org/packages/ExifLibNet)[![Travis](https://img.shields.io/travis/oozcitak/exiflibrary.svg?style=flat-square)](https://travis-ci.org/oozcitak/exiflibrary)
[![AppVeyor](https://img.shields.io/appveyor/ci/oozcitak/exiflibrary.svg?style=flat-square)](https://ci.appveyor.com/project/oozcitak/exiflibrary)ExifLibrary is a .Net Standard library for editing Exif metadata contained in image files.
# Installation #
If you are using [NuGet](https://nuget.org/) you can install the assembly with:
`PM> Install-Package ExifLibNet`
# Quick Start #
To read an image file and extract metadata:
```cs
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(ExifTag.ISOSpeedRatings);// the flash tag's value is an enum
var flashTag = file.Properties.Get>(ExifTag.Flash);// GPS latitude is a custom type with three rational values
// representing degrees/minutes/seconds of the latitude
var latTag = file.Properties.Get(ExifTag.GPSLatitude);
```To add metadata:
```cs
var file = ImageFile.FromFile("path_to_image");
// note the explicit cast to ushort
file.Properties.Set(ExifTag.ISOSpeedRatings, 200);
```To save the image with metadata:
```cs
file.Save("path_to_image");
```# Documentation #
Please visit: http://oozcitak.github.io/exiflibrary/