Free Support Forum -

Cannot extract Azure label information from XMP metadata

I have a jpg file which have been classified with Azure Information Protection client. So its XMP metadata contains some MSIP Label information. For example:

MSIP_Label_ff1f1c9d-2f92-4a17-8c74-5b298b531414_Name: Confidential

When I tired to extract this information with the following code but I only managed to print the “dc:creator”.

Code snippet:

using (JpegImage image = (JpegImage)Image.Load(path))
	var xmpData = image.XmpData;
	if (xmpData != null)
		foreach (XmpPackage package in xmpData.Packages)
			 Console.WriteLine($"Package XmlValue: {package.GetXmlValue()}");

I opened the jpg file with an editor, checked the xmp metadata and what I noticed that the MSIP Labels are located in the “rdf:Description”. Could you help me how can I get this information through the XmpPacketWrapper? (1.8 MB)

Aspose.Imaging .NET 20.4 version



I have observed the issue shared by you and have created an issue with ID IMAGINGNET-3882 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as IMAGINGNET-3882) have been fixed in this update.