I am looking for simple straightforward solution for accessing EXIF information of jpeg images in .Net. Does anybody has experience with this?
EXIF data helps Google to understand your pictures.
What's the difference between metadata and EXIF? In digital photography, metadata is the information stored within an image describing the camera settings used, the shoot location, and more. An EXIF is the file that stores this metadata.
The exchangeable image file format (EXIF) is a standard for embedding technical metadata in image files that many camera manufacturers use and many image-processing programs support. EXIF metadata can be embedded in TIFF and JPEG images.
If you're willing to use an open-source library, may I humbly suggest one of my own creation?
The metadata-extractor project has been alive and well since 2002 for Java, and is now available for .NET.
It's available via NuGet or GitHub.
Sample usage:
IEnumerable<Directory> directories = ImageMetadataReader.ReadMetadata(path); foreach (var directory in directories) foreach (var tag in directory.Tags) Console.WriteLine($"{directory.Name} - {tag.TagName} = {tag.Description}");
If you're compiling against v3 of the Framework (or later), then you can load the images using the BitmapSource
class, which exposes the EXIF metadata through the Metadata
property
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With