I have a program which can read xmp Data in C# but some images have some properties NULL and when I am trying to write xmp data for a NULL property it gives an exception:
Property cannot be found :Exception from HRESULT: 0x88982F40
Is it possible to set values for properties which are NULL?
// Credit Status = Copyrighted
metaData.SetQuery("/xmp/xmpRights:Marked", "True");
//overwriting instructions with static text
metaData.SetQuery("/xmp/photoshop:Instructions", Constants.InstructionsText);
var usageTerms = metaData.GetQuery("/xmp/xmpRights:UsageTerms/x-default");
if (string.IsNullOrEmpty(Convert.ToString(usageTerms)))
metaData.SetQuery("/xmp/xmpRights:UsageTerms/x-default", Constants.UsageTermText);
Basically i need a script through which i can create a new XMP property in Jpeg?