Closed Mohammed-Javad closed 11 months ago
XMPFiles::GetXMP() internally calls SXMPUtils::ApplyTemplate where properties with empty values are either ignored or cause deletion. Hence the out xmpMeta object do not have empty values. This is expected behaviour.
In case you still need that packet
GetXMP ( SXMPMeta * xmpObj = 0, tStringObj * xmpPacket = 0, XMP_PacketInfo * packetInfo = 0 );
https://github.com/adobe/XMP-Toolkit-SDK/blob/main/public/include/TXMPFiles.hpp#L627 can be called with non null string object in which it will return the raw XMP packet as stored in the file.
I have a png with Embedded xmp data as shown below
_