• Resolved davidhorizon

    (@davidhorizon)


    Hello,

    I’m quite stuck with ITCP datas. I need to map them to some of my custom fields / wordpress images fields but I can’t get them all.

    For now I can map pretty much all of them but I can’t figure out a way to get those:

    <Iptc4xmpCore:CiAdrExtadr>funambule sur fond de ciel orangé</Iptc4xmpCore:CiAdrExtadr>
    <Iptc4xmpCore:CiTelWork>texte alternatif</Iptc4xmpCore:CiTelWork>
    <xmpRights:WebStatement>contrecollé sur dibond</xmpRights:WebStatement>

    Here is an xmp example

    
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c111 79.158325, 2015/09/10-01:10:20        ">
       <rdf:RDF xmlns:rdf="https://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description rdf:about=""
                xmlns:xmp="https://ns.adobe.com/xap/1.0/"
                xmlns:dc="https://purl.org/dc/elements/1.1/"
                xmlns:photoshop="https://ns.adobe.com/photoshop/1.0/"
                xmlns:illustrator="https://ns.adobe.com/illustrator/1.0/"
                xmlns:xmpRights="https://ns.adobe.com/xap/1.0/rights/"
                xmlns:xmpMM="https://ns.adobe.com/xap/1.0/mm/"
                xmlns:Iptc4xmpCore="https://iptc.org/std/Iptc4xmpCore/1.0/xmlns/"
                xmlns:tiff="https://ns.adobe.com/tiff/1.0/"
                xmlns:exif="https://ns.adobe.com/exif/1.0/">
             <xmp:CreateDate>2018-03-26T12:27:47+02:00</xmp:CreateDate>
             <xmp:ModifyDate>2018-03-26T12:27:47+02:00</xmp:ModifyDate>
             <xmp:MetadataDate>2018-03-26T12:27:47+02:00</xmp:MetadataDate>
             <xmp:CreatorTool>Adobe Photoshop CS3 Macintosh</xmp:CreatorTool>
             <dc:format>image/jpeg</dc:format>
             <dc:title>
                <rdf:Alt>
                   <rdf:li xml:lang="x-default">Funambule</rdf:li>
                </rdf:Alt>
             </dc:title>
             <dc:creator>
                <rdf:Seq>
                   <rdf:li>Jeanne Lorem</rdf:li>
                </rdf:Seq>
             </dc:creator>
             <dc:subject>
                <rdf:Bag>
                   <rdf:li>impression pigmentaire sur papier fine art</rdf:li>
                </rdf:Bag>
             </dc:subject>
             <dc:rights>
                <rdf:Alt>
                   <rdf:li xml:lang="x-default">? Jeanne Lorem</rdf:li>
                </rdf:Alt>
             </dc:rights>
             <dc:description>
                <rdf:Alt>
                   <rdf:li xml:lang="x-default">funambule sur fond de ciel orangé</rdf:li>
                </rdf:Alt>
             </dc:description>
             <photoshop:CaptionWriter>40X60 cm</photoshop:CaptionWriter>
             <photoshop:AuthorsPosition>7 exemplaires</photoshop:AuthorsPosition>
             <photoshop:LegacyIPTCDigest>C517EDADA6255565DCB7780A4F1CEB00</photoshop:LegacyIPTCDigest>
             <photoshop:ColorMode>3</photoshop:ColorMode>
             <photoshop:ICCProfile>c2</photoshop:ICCProfile>
             <illustrator:StartupProfile>Print</illustrator:StartupProfile>
             <xmpRights:WebStatement>contrecollé sur dibond</xmpRights:WebStatement>
             <xmpRights:Marked>False</xmpRights:Marked>
             <xmpMM:InstanceID>uuid:8ED447947832E811B4EEAB4D42B0FC4D</xmpMM:InstanceID>
             <xmpMM:DocumentID>uuid:8DD447947832E811B4EEAB4D42B0FC4D</xmpMM:DocumentID>
             <xmpMM:DerivedFrom rdf:parseType="Resource"/>
             <Iptc4xmpCore:CreatorContactInfo rdf:parseType="Resource">
                <Iptc4xmpCore:CiAdrExtadr>funambule sur fond de ciel orangé</Iptc4xmpCore:CiAdrExtadr>
                <Iptc4xmpCore:CiTelWork>texte alternatif</Iptc4xmpCore:CiTelWork>
             </Iptc4xmpCore:CreatorContactInfo>
             <tiff:ImageWidth>640</tiff:ImageWidth>
             <tiff:ImageLength>640</tiff:ImageLength>
             <tiff:BitsPerSample>
                <rdf:Seq>
                   <rdf:li>8</rdf:li>
                   <rdf:li>8</rdf:li>
                   <rdf:li>8</rdf:li>
                </rdf:Seq>
             </tiff:BitsPerSample>
             <tiff:PhotometricInterpretation>2</tiff:PhotometricInterpretation>
             <tiff:Orientation>1</tiff:Orientation>
             <tiff:SamplesPerPixel>3</tiff:SamplesPerPixel>
             <tiff:XResolution>720000/10000</tiff:XResolution>
             <tiff:YResolution>720000/10000</tiff:YResolution>
             <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
             <exif:ExifVersion>0221</exif:ExifVersion>
             <exif:ColorSpace>1</exif:ColorSpace>
             <exif:PixelXDimension>640</exif:PixelXDimension>
             <exif:PixelYDimension>640</exif:PixelYDimension>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta>
    

    (this came from photoshop)

    Also I couldn’t find where IPTC Identifiers like 1#022 come from ? I just tried them all by copy/paste the full list but couldn’t display all the data from xmp file.

    And Are ITCP field embed in XMP data ?

    Thank’s for any help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thanks for your question and especially for including the specific elements you are trying to access. The Photoshop dump is very helpful; I use Photoshop CS6 on my own system.

    MLA uses a PHP function to parse traditional IPTC data embedded in an image file. This function is limited to the older IPTC identifiers, which do not include the values you are looking for. MLA provides access to almost everything in the file’s XMP metadata with its xmp: prefix. You can find more information in the “Field-level Substitution Parameters” section of the Settings/Media Library Assistant Documentation tab.

    Your example contains this XMP data:

             <Iptc4xmpCore:CreatorContactInfo rdf:parseType="Resource">
                <Iptc4xmpCore:CiAdrExtadr>funambule sur fond de ciel orangé</Iptc4xmpCore:CiAdrExtadr>
                <Iptc4xmpCore:CiTelWork>texte alternatif</Iptc4xmpCore:CiTelWork>
             </Iptc4xmpCore:CreatorContactInfo>
    

    This data defines the Iptc4xmpCore namespace, which contains the CreatorContactInfo array. The array contains two elements: CiAdrExtadr and CiTelWork. To access this data in a mapping rule you can use:

    [+xmp:Iptc4xmpCore.CreatorContactInfo.CiAdrExtadr+]
    [+xmp:Iptc4xmpCore.CreatorContactInfo.CiTelWork+]
    [+xmp:WebStatement+]
    

    The last reference gives you the other element you want, which is in the “xmpRights” namespace. MLA elevates this to the root level for ease of access.

    I hope that gets you the information you need. I am marking this topic resolved, but please update it if you have any problems or further questions regarding the above suggestions. Thanks for your interest in the plugin.

    Thread Starter davidhorizon

    (@davidhorizon)

    Ok,

    tried a lot of thing but couldn’t get the syntax to work. Didn’t get I should include parent node with template xmp syntax. No everything is fine.

    Best support once more. Thank you so much.

    • This reply was modified 6 years, 12 months ago by davidhorizon.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Confused with ITCP data’ is closed to new replies.