I've been looking around for a decent way of reading metadata (specifically, the date taken) from JPEG files in C#, and am coming up a little short. Existing information, as far as I can see, shows code like the following;
BitmapMetadata bmd = (BitmapMetadata)frame.Metadata;
string a1 = (string)bmd.GetQuery("/app1/ifd/exif:{uint=36867}");
But in my ignorance I have no idea what bit of metadata GetQuery() will return, or what to pass it.
I want to attempt reading XMP first, falling back to EXIF if XMP does not exist. Is there a simple way of doing this?
Thanks.