Reads XMP (Extensible Metadata Platform) metadata from JPEG and PNG images.
XmpMetadata extracts Adobe's XMP data, which provides a standardized way to store metadata across different file formats. XMP is commonly used by Adobe products and professional photography workflows for storing rich metadata.
XMP can contain:
- Dublin Core metadata (title, creator, description, keywords)
- Rights management information
- Adobe-specific data (Lightroom, Photoshop settings)
- Custom metadata namespaces
- IPTC Core information
The metadata is stored as XML and this class parses it into key-value pairs.
Usage:
FileInputStream stream(imageFile);
OwnedArray<ImageMetadata> metadata;
for (auto* meta : metadata)
{
{
StringPairArray data = xmp->getAllMetadata();
String title = data["dc:title"];
String creator = data["dc:creator"];
String keywords = data["dc:subject"];
}
}
- See also
- ImageMetadata, ExifMetadata, IptcMetadata