ExifTool Forum

General => Metadata => Topic started by: tobisi on April 21, 2020, 05:28:00 PM

Title: XMP-iptcCore:CreatorContactInfo Struct
Post by: tobisi on April 21, 2020, 05:28:00 PM
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!
Title: Re: XMP-iptcCore:CreatorContactInfo Struct
Post by: StarGeek on April 21, 2020, 05:41:15 PM
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>

Title: Re: XMP-iptcCore:CreatorContactInfo Struct
Post by: tobisi on April 21, 2020, 05:46:20 PM
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.
Title: Re: XMP-iptcCore:CreatorContactInfo Struct
Post by: StarGeek on April 21, 2020, 06:23:18 PM
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'?>
Title: Re: XMP-iptcCore:CreatorContactInfo Struct
Post by: tobisi on April 23, 2020, 01:13:29 PM
Hi! Yes I think you are correct. Thank you!