I would like to write a small program in C# which goes through my jpeg photos and, for example, sorts them into dated folders (using MY dating conventions, dammit…).
Does anyone know a relatively easy way to get at the EXIF data such as Date And Time or Exposure programatically? Thanks!
Check out this metadata extractor.
It is written in Java but has also been ported to C#.I have used the Java version to write a small utility to rename my jpeg files based on the date and model tags. Very easy to use.EDIT metadata-extractor supports .NET too. It’s a very fast and simple library for accessing metadata from images and videos.
It fully supports Exif, as well as IPTC, XMP and many other types of metadata from file types including JPEG, PNG, GIF, PNG, ICO, WebP, PSD, …
It’s available via NuGet and the code’s on GitHub.