Prefix before colon in xmp tags

Started by DulwichBrewery, October 27, 2024, 03:11:15 PM

Previous topic - Next topic

DulwichBrewery

Reviewing an image's metadata in Adobe Bridge's File Info dialog, I can see that the XMP tag names have prefixes. So for example, panorama:Transformation:

<panorama:Transformation>Spherical</panorama:Transformation>

Using the -g option in the command line, I can extract metadata by groups like File, EXIF, Composite, and XMP. So the command line outputs the above line under the XMP group as:

"Transformation": "Spherical",

Ideally I want to extract grouped data where the "subgroup" is included. For example: XMP / Panorama / Spherical

Alternatively, I could process the prefix downstream if I could get the command line to include the subgroup prefix like this:

"panorama:Transformation": "Spherical",

So the question... Is it possible to extract data grouped by these preefixes like panorama, or get the prefixes, and with what command line option?

Phil Harvey

You should be using -g1 instead of -g to separate the XMP according to namespace.

But to get the closest to the line in your example, you would use -j -G1

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).