Copy link to clipboard
Copied
I am using the following to add metadata, the metadata displays in XN View MP, however I am not seeing the option to display XMP in Bridge. (IPTC, GPS, etc. are in the panel but no XMP) I must be missing an option.
Here is the code used to generate the metadata.
import pyexiv2
img = pyexiv2.Image('xmptest.jpg')
xmp = img.read_xmp()
print(xmp)
pyexiv2.registerNs('abc', 'abc')
img.modify_xmp({ 'Xmp.abc.valstring': 'xnviewtest',
'Xmp.abc.valfloat': 1.234,
'Xmp.abc.valint': 434})
img.close()
# --
img = pyexiv2.Image('xmptest.jpg')
xmp = img.read_xmp()
print(xmp)
Copy link to clipboard
Copied
By default, the metadata panels in Bridge only display XMP properties for defined standards like IPTC, etc.
I'm not familiar with XN View XMP import, but it looks like you are using a custom namespace ('abc') and properties ('valstring', 'valfloat', 'valint' is that right? You can get this to display in Bridge by creating a custom metadata panel for that namespace and any properties you have defined.
This would be the best way to do that:
https://exchange.adobe.com/apps/cc/103752/custom-metadata-panel
https://github.com/adobe-dmeservices/custom-metadata/wiki
If you want to see the metadata in the default IPTC panel, you have to write to the their specified namespaces and properties.
https://www.iptc.org/std/photometadata/specification/IPTC-PhotoMetadata
I can help you apply the spec, if you are going that route.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now