Hi,
I've been trying to add the "CreatorContactInfo" struct to an image but keep getting the undefined message. I'm probably not having the right wording format:
exiftool -XMP-iptcCore:CreatorContactInfo:ContactInfoCiUrlWork="www.test.com" [filename.jpg]
How do you build the structure in order to insert the "CiUrlWork" tag?
CreatorContactInfo => {
Struct => {
STRUCT_NAME => 'ContactInfo',
NAMESPACE => 'Iptc4xmpCore',
CiAdrCity => { },
CiAdrCtry => { },
CiAdrExtadr => { },
CiAdrPcode => { },
CiAdrRegion => { },
CiEmailWork => { },
CiTelWork => { },
CiUrlWork => { },
},
},
Thank you!
See XMP iptcCore Tags (https://exiftool.org/TagNames/XMP.html#iptcCore).
If you're just adding that one entry, used the flattened tag listed there, CreatorWorkURL
exiftool -CreatorWorkURL=www.test.com <FileOrDir>
Thanks for the quick reply!
I was already able to insert the CreatorUrlWork. But in this case I'm trying to add the XMP ContactInfo Struct, referencing the "CiUrlWork" tag. This tag it's useful when you post an image to the web and gets shared by people, it increases your SEO rates.
CreatorWorkURL is the CiUrlWork portion of the ContactInfo structure.
See Structured Information (https://exiftool.org/struct.html) for details.
Example:
C:\>exiftool -P -overwrite_original -CreatorWorkURL=www.test.com y:\!temp\Test4.jpg
1 image files updated
C:\>exiftool -g1 -a -s -b -xmp y:\!temp\Test4.jpg
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 11.93'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
<rdf:Description rdf:about=''
xmlns:Iptc4xmpCore='http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/'>
<Iptc4xmpCore:CreatorContactInfo rdf:parseType='Resource'>
<Iptc4xmpCore:CiUrlWork>www.test.com</Iptc4xmpCore:CiUrlWork>
</Iptc4xmpCore:CreatorContactInfo>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>
Hi! Yes I think you are correct. Thank you!