https://github.com/binsabry/exiftoolwrapper
ExifToolWrapper is a C# library that provides various helper methods and features using ExifTool.
https://github.com/binsabry/exiftoolwrapper
cli exif image-metadata open-source
Last synced: about 1 year ago
JSON representation
ExifToolWrapper is a C# library that provides various helper methods and features using ExifTool.
- Host: GitHub
- URL: https://github.com/binsabry/exiftoolwrapper
- Owner: BinSabry
- License: mit
- Created: 2024-02-04T14:30:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-21T23:07:06.000Z (over 1 year ago)
- Last Synced: 2025-04-01T07:51:29.051Z (over 1 year ago)
- Topics: cli, exif, image-metadata, open-source
- Language: C#
- Homepage:
- Size: 6.82 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ExifToolWrapper
ExifToolWrapper is a C# library that provides various helper methods and features using ExifTool.
# Usage
```C#
//Read current ExifTool version
var version = ExifToolWrapper.GetVersion();
//Format date to Exif format
var date = ExifToolWrapper.FormatDateTime(DateTime.Now);
//For one time execution using static method
var path = @"D:\Media\20181112-035722.jpg";
var properties = ExifToolWrapper.InstaExecute(path);
//For many executions and best performance
//using always-open instance of ExifTool
using (ExifToolWrapper exif = new ExifToolWrapper())
{
var dates = exif.Execute(path, "-AllDates"); //Read
exif.Execute(path, $"-FileModifyDate={date}"); //Write
var props = exif.ReadMetadata(path); //Read
exif.TryWriteMetadata(path, props); //Write
}
//Delete original files after processing them by Exif
ExifToolWrapper.DeleteOriginal(@"D:\Media");
```
## About ExifTool
[ExifTool](https://exiftool.org/) is a customizable set of Perl modules plus a full-featured
command-line application for reading and writing meta information in a wide
variety of files, including the maker note information of many digital
cameras by various manufacturers such as Canon, Casio, DJI, FLIR, FujiFilm,
GE, HP, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon, Nintendo,
Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Phase One, Reconyx, Ricoh,
Samsung, Sanyo, Sigma/Foveon and Sony.