Shane Miskin
Shane Miskin

Reputation: 1911

How do I retrieve the properties of a photo taken on a digital camera using .NET?

Preferably in VB.Net, but C# is fine, how can I access the extra properties added to a file by my digital camera, like Date Picture Taken, Shutter Speed or Camera Model?

Upvotes: 5

Views: 17728

Answers (4)

Drew Noakes
Drew Noakes

Reputation: 311245

I maintain a library that offers comprehensive support for extracting image metadata from a variety of file formats.

https://github.com/drewnoakes/metadata-extractor-dotnet

Upvotes: 5

Eric Schoonover
Eric Schoonover

Reputation: 48402

You probably want to use the BitmapMetadata class in the System.Windows.Media.Imaging namespace.

There is a BitmapMetadata sample that can be downloaded from MSDN.

Upvotes: 1

labilbe
labilbe

Reputation: 3584

The following article should be helpful.

Upvotes: 1

Xenph Yan
Xenph Yan

Reputation: 83991

When I built something similar I used this article quite a bit. But basically you're looking for the EXIF data embedded in the image.

There are a number of great libraries to extract it for you, if you don't want to write it from scratch.

Upvotes: 3

Related Questions