Hi.
We have an system from Xinet that writes their own tags in files.
I have tried multiple times now to update the info in those tags using exiftool but without success.
I have even tried to generate config files for exiftool, but i only get warnings such as the tag not being found of image not updated or similar.-
I have attached an screenshot of the namespace and tags, it is the xwnv tags that i would like to be able to update or write using exiftool.
Could someone please help me with advices or sample of how i should construct an proper exiftool config file to be able to write them?
//Rickard Hansson
Hi Rickard,
Try this config file:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::XMP::Main' => {
xwnv => {
SubDirectory => {
TagTable => 'Image::ExifTool::UserDefined::xwnv',
},
},
},
);
%Image::ExifTool::UserDefined::xwnv = (
GROUPS => { 0 => 'XMP', 1 => 'XMP-xwnv', 2 => 'Image' },
NAMESPACE => { 'xwnv' => 'http://ns.xinet.com/ns/xinetschema#' },
WRITABLE => 'string',
AM_ImageType => { },
AM_Status => { },
usage_locked => { Writable => 'boolean' },
LastMetadataChange => {
Writable => 'date',
Shift => 'Time',
PrintConv => '$self->ConvertDateTime($val)',
PrintConvInv => '$self->InverseDateTime($val,undef,1)',
},
);
1; #end
And a command like this:
exiftool -config CONFIG_FILE_NAME -am_imagetype=Product -am_status="2 Vald LL" -lastmetadatachange=now -usage_locked=false FILE
- Phil
Thanks.
I will give it a try.
I can see that your config file differs slightly from the one i tested to create.
I can verify that it works as it should.
Thank you very much for the help.
I can now see the parts that i wrote and tested myself and where i failed and this config is a good template for possible future usage/modifications.