Read XMP Property
Reads specific XMP property.
Сode Snippet
using (var reader = new JpegReader("Apple.jpg"))
{
// Check if XMP data are present in the file
if (reader.Xmp != null)
{
// Get an XML code from the reader
var xmp = new XmpData(reader.Xmp);
// Print the value of the xmp:XmpCreateDate tag if it exists
if (xmp.Contains(XmpTagNames.XmpCreateDate))
{
Console.WriteLine(
"\n\nCreate date {0}",
xmp[XmpTagNames.XmpCreateDate]);
}
}
}
Input
Chicago.jpg
Output
ReadXmpProperty.txt
Create date 2013-09-10T15:27:22
For AI-assisted development: Download Graphics Mill Code Samples XML Catalog