I'm trying to modify XMP data on a .jpg exported from Global Edit. I'm able to read data from the 'XMP-BK' group, but not able to write. Here's where I've gotten so far.
exiftool -a -G1 -s myFilePath
I get the tags in the metadata returned, including:
[XMP-BK] FinishOneRef : test
I can read this data no problem:
bkilleen$ exiftool -xmp:xmp-bk:finishoneref myFilePath
Finish One Ref : test
But I cannot write:
bkilleen$ exiftool -xmp:xmp-bk:finishoneref="Color" myFilePath
Warning: Tag 'xmp:xmp-bk:finishoneref' is not defined
Nothing to do.
I've dug into the docs and it seems that I need to define 'XMP-BK' as a user-defined table. I've tried this as well, but perhaps I'm going something wrong. Here's my .exiftool_config data:
# new XMP namespaces (eg. xxx) must be added to the Main XMP table:
'Image::ExifTool::XMP::Main' => {
# namespace definition for examples 8 to 11
BK => { # <-- must be the same as the NAMESPACE prefix
SubDirectory => {
TagTable => 'Image::ExifTool::UserDefined::BK',
# (see the definition of this table below)
},
},
# This is a basic example of the definition for a new XMP namespace.
# This table is referenced through a SubDirectory tag definition
# in the %Image::ExifTool::UserDefined definition above.
# The namespace prefix for these tags is 'xxx', which corresponds to
# an ExifTool family 1 group name of 'XMP-xxx'.
%Image::ExifTool::UserDefined::BK = (
GROUPS => { 0 => 'XMP', 1 => 'XMP-BK', 2 => 'Image' },
NAMESPACE => { 'BK' => 'myWebsite' },
WRITABLE => 'string', # (default to string-type tags)
FinishOneRef => { Writable }
Any help is much appreciated!
I resolved this. The website I had in the config file was incorrect! Once corrected, the tag became writable as desired.