|
Hi Kailash,
Thanks for the feedback. I like your "fileref" name, and yes, this
is does include the path as typed on the command line. I think we're
getting close. I don't like "metadatas" because from a grammatical
point of view, "data" is already plural. But perhaps "item" (or "object"?)
makes a bit more sense with "fileref" as an attribute. I also considered
"source", "src" or "from", but maybe these aren't quite right either.
Also, it seems you're
happy with the lists, which is good. I'm not as worried about keywords
in HTML output, because that format is not designed to be machine
readable.
So this is what I have now:
exiftool ./a.jpg -keywords -X
<?xml version='1.0' encoding='UTF-8'?>
<metadata toolkit='Image::ExifTool 7.47'>
<item fileref='./a.jpg'>
<tag name='Keywords'>one</tag>
<tag name='Keywords'>two</tag>
</item>
</metadata>
Also, in the previous examples I left out combinations of
-G and -s, which is significant because
these combinations use the group name as an XML namespace:
exiftool a.jpg -keywords -X -G -s
<?xml version='1.0' encoding='UTF-8'?>
<metadata toolkit='Image::ExifTool 7.47' family='0'>
<item fileref='a.jpg'>
<IPTC:Keywords>one</IPTC:Keywords>
<IPTC:Keywords>two</IPTC:Keywords>
</item>
</metadata>
exiftool a.jpg -keywords -X -G -S
<?xml version='1.0' encoding='UTF-8'?>
<metadata toolkit='Image::ExifTool 7.47' family='0'>
<item fileref='a.jpg'
IPTC:Keywords='one, two'/>
</metadata>
- Phil
|