• Resolved mjhasinus

    (@mjhasinus)


    Hi David,
    Please allow me first to say sorry for my bad English, I live in Switzerland, and my native language is “Swiss German” (not the same like “High-German).

    For a not-native person like me it is very difficult to understand all this stuff.

    But before my next points I want not miss to say you thank you.
    You do a great job, incredible and also your support seems to be very very good and also very human (don´t forget my language, though I am using sometime e.g. deepL for translating).

    Well, my problem is:

    I have searched and read and looked … but I cannot find a good and easy manual for starting your plugin. Your help and documentation is really fantastic big and surely sophisticated, but simply overhelming for me.

    What I hopped to find is a easy manual for starting with the very basic preferences.
    OK, I think, people want use your plugin for different purposes.

    But one of the big thing (I guess), is to bring some metadata-fields, what are already in an image, to the correct field in wordpress.
    This is true, I think, for most professional photographers like me.

    I fill images with help of a DAM (in my case not Lightroom, but the better (my opinion) software called IMatch) into a picture, like headline, description, keywords and want not much more that in WordPress I have not put all this text again.

    Then I read about your plugin again, and see example plugins and fixit and so on, but still I am overhelmed.

    Where should I start, do I use the example plugins (I tried also, but without success) or what.

    I is a pity, because I feel and read also, your plugin is for sure great.

    Finally, maybe you think, ok, do not write that long, what is your question? 🙂

    Well, most important for me are Filter Tags in WordPress.
    There should go my keywords, what are alread in the xmp.

    And then I want some other field also.

    I try to show it here more exactly:

    The wordpress – field “Filter Tag” should have the value of the field
    {File.MD.XMP::dc\subject\Subject\0}

    The values are stored in this field with a separator ; but each value between two ; should be a Filter Tag (one keyword = one Filter Tag)

    The wordpress – field “Title” should have the value of the field
    {File.MD.XMP::photoshop\Headline\Headline\0}

    The wordpress – field “Alt Text” should have the value of the fields
    {File.MD.XMP::photoshop\Headline\Headline\0}
    and at the end the words (copyright by sinus)

    Maybe the most difficult ?
    The wordpress – field “Description” should have the value of the fields
    {File.MD.XMP::iptcExt\LocationShownCity\LocationShownCity\0}
    {File.MD.XMP::iptcExt\LocationShownCity\LocationShownCity\0}
    {File.MD.XMP::iptcExt\LocationShownProvinceState\LocationShownProvinceState\0}
    {File.MD.XMP::dc\description\Description\0}

    As separators between the fields could be e.g. a slash or hyphen

    At the moment I have some images on my site, but I have put e.g. the Filter Tags all inside WordPress, and this is not easy to do.

    I know, David, and sorry for this, I wrote a long message, and maybe you cannot help, but maybe you could give me some hints.

    In your plugin I could see in the IPTC/EXIF – panel, that I can choose a IPTC-value.
    This I understand.
    But I cannot use two IPTC-values.
    I wonder, must I then deal with EXIF/Template Value? Because EXIF is finally something else like IPTC, what irritates me a bit.

    Hmmmm, during my writing I think, my toughts are not enough good, that you understand it.
    Well, nevertheless I will send it, maybe you can manage to give my a clue or link anyway.

    Thanks realy for reading this stuff, I can imagine, it must be not easy to read.

    Best wishes
    Markus

    PS: I have added my page, though I have no problems there, but the images what you see, I have a lot of the fields filled out by hand in WordPress, for the Filter tags all.

    The page I need help with: [log in to see the link]

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

    (@dglingren)

    Thanks for all your kind words and for the detailed description of your application. I am confident MLA can help you extract your metadata and get it to the right WordPress destinations. Your English is not bad at all – much better than my Schweizerdeutsch.

    I looked at your site, which is beautiful, and analyzed a few of the image files. I see quite a bit of metadata in the files but I have not found an image that has a value in the Subject field. You wrote “The values are stored in this field with a separator ; but each value between two ; should be a Filter Tag (one keyword = one Filter Tag)“. If you could post a link or give me a way to find one or more files with the data values you want to extract I can give you more specific help.

    I did find one file, inv-47.jpg, that has the location information and the description. The inv-43.jpg file also has “Sublocation”. The inv-52.jpg file also has location information in the “Adobe Photoshop Properties”.

    I assume that when you write “Filter Tag” you mean you want to assign your keywords as terms in the WordPress “Tags” taxonomy or in MLA’s “Att. Tags” taxonomy. Let me know if I understand you correctly.

    I will leave this topic unresolved and await your response; any additional details and example files you can provide will be very helpful. Thank you for your interest in the plugin.

    Thread Starter mjhasinus

    (@mjhasinus)

    Hi David
    Thanks a lot, that you wrote that quickly!
    And your “Schweizerdeutsch”, no surprise, this is finally a curious language and only few people use it, say about 5 Millions or so.

    And thanks for your nice words about my site, you are really “a nice chap” (means positive, but bear in mind my language). 🙂 I have heard this in England, when I was there for 3 weeks a lot.
    And I was surprised, how quickly you found some information on my web-site. Impressive.

    Regarding the keywords, they are stored in my images in two fields:
    {File.MD.XMP::Lightroom\hierarchicalSubject\HierarchicalSubject\0}
    in this form:
    Ortschaft|Switzerland|Kanton Aargau|Oberflachs 5108|Kasteln 5; dog; 66 Privat|Familie|Miller|776 Miller Erwin Daniel; 66 Privat|Familie|Miller|772 Keller-Miller Ursula Klara

    This values are then with my DAM “transferred” in this field
    {File.MD.XMP::dc\subject\Subject\0}
    in this form:
    Ortschaft; Switzerland; Kanton Aargau; Oberflachs 5108; Kasteln 5; dog; Miller; 776 Miller Erwin Daniel; 772 Keller-Miller Ursula Klara; 66 Privat; Familie

    Sorry that I was not clear enough.
    This means, I guess, it is easier to use the second field, because there are the single values, what I want use, separated with a ; (double – colon)

    Maybe I start here, that you understand it better.
    All my images, the metadata, I write in IMatch in some fields.
    write-metas

    I have marked the fields, what I want to use in wordpress.

    The two keyword-fields, what I have mentioned above, are the values, what should go in the “Filter tag” of WordPress. Each value (like here Zugersee; Schiff; Alpenstrasse; …) should give a Filtertag.
    Filter-tag
    Filter-tag2-mla

    These filter Tags a user can then on the site use for filtering “words”, like you see here
    Filtertags-as-filtering

    If I look in the “Media Library Assistant” at the fields,
    Filter-tag2-mla then the keywords would be in the last colonne “Filter Tag”.

    The Headline {File.MD.XMP::photoshop\Headline\Headline\0} should go into the second tab “Title”.

    The 4. tab “ALT text” should have this here:
    {File.MD.XMP::photoshop\Headline\Headline\0}
    and at the end the words (copyright by sinus)

    The 6. tab “Description” should have this here
    {File.MD.XMP::iptcExt\LocationShownCity\LocationShownCity\0}
    {File.MD.XMP::iptcExt\LocationShownProvinceState\LocationShownProvinceState\0}
    {File.MD.XMP::dc\description\Description\0}
    As separators between the fields could be e.g. a slash or hyphen
    (sorry, in my first post I doubled the city, by mistake)

    This would give in the Description something like:
    6300 Zug/Kanton Zug: War nach der Weinmesse, die beiden Schiffe vor der untergehenden Sonne auf dem Zugersee

    I came on these fields, because I have read in the internet, that they are important.
    If I am not wrong, “Caption” (the 5. tab) is not that important or should be filled out also with the headline.

    And you have refered to the names like “inv-52.jpg”.
    If I understood it correct, I should also use not such a name, instead better e.g. “Weinmesse-auf-dem-Zugersee”.
    I have to think at this in the future also.

    I am embarrassed, that I give you such a lot of text and work. I would not do, if I could make it myself.
    If I finally understand this part of your plugin, how to use, I will at least write a blog for others, who wants achieve something equal.

    Thanks a lot for looking into this.

    Plugin Author David Lingren

    (@dglingren)

    Thank you for your update and for all the work you put in to preparing the screen shots; very helpful.

    From your david1.jpg and david2.jpg screen shots it looks like “Filter Tag” is a custom taxonomy created by your theme or some plugin, separate from the taxonomies I mentioned in my earlier post. Is that right?

    I believe the file shown in your david2.jpg screen shot is one of the files I downloaded from your site for analysis. I am confused because the metadata in the file I downloaded is different from that shown in your screen shot and in the examples you gave in your post. For example, the Title/Headline in the file I have is “Weinmesse Zug / Zugersee”. I do not see the “Weinmesse-Schiff auf dem Zugersee” shown in your screen shot. As I noted in my earlier post I do not see the “dc\subject” value in any of the files I examined.

    Here is the relevant XMP metadata I found in the inv-52.jpg file. I have omitted some of the other data such as exif and tiff values:

      'mla_xmp_metadata' => 
      array (
        'xmptk' => 'Image::ExifTool 10.78',
        'creator' => 'SINUS / Markus J. Hässig',
        'format' => 'image/jpeg',
        'language' => 'invictus online',
        'rights' => 'Copyright© und alle Rechte bei www.sinus.ch',
        'title' => '20150320-1805-255628-s-coo-weinmesse_a.nef',
        'CreateDate' => '2015-03-20 18:05:02',
        'CreatorTool' => 'photools.com IMatch 17.14.0.2 (Windows)',
        'MetadataDate' => '2018-05-17 12:34:39',
        'ModifyDate' => '2018-05-17 12:34:39',
        'Rating' => '1',
        'DocumentID' => 'xmp.did:0c33488e-fadd-4819-acda-c0ab529464d3',
        'InstanceID' => 'xmp.iid:3a919482-ea39-4440-a003-204b8bc1e9c8',
        'OriginalDocumentID' => 'xmp.did:0c33488e-fadd-4819-acda-c0ab529464d3',
        'Title' => '20150320-1805-255628-s-coo-weinmesse_a.nef',
        'Author' => 'SINUS / Markus J. Hässig',
        'Creator' => 'photools.com IMatch 17.14.0.2 (Windows)',
        'CreationDate' => '2015-03-20 18:05:02',
        'ModDate' => '2018-05-17 12:34:39',
        'xmlns' => 
        array (
          'x' => 'adobe:ns:meta/',
          'rdf' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
          'Iptc4xmpCore' => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
          'Iptc4xmpExt' => 'http://iptc.org/std/Iptc4xmpExt/2008-02-29/',
          'aux' => 'http://ns.adobe.com/exif/1.0/aux/',
          'dc' => 'http://purl.org/dc/elements/1.1/',
          'exif' => 'http://ns.adobe.com/exif/1.0/',
          'exifEX' => 'http://cipa.jp/exif/1.0/',
          'photoshop' => 'http://ns.adobe.com/photoshop/1.0/',
          'tiff' => 'http://ns.adobe.com/tiff/1.0/',
          'xmp' => 'http://ns.adobe.com/xap/1.0/',
          'stEvt' => 'http://ns.adobe.com/xap/1.0/sType/ResourceEvent#',
          'xmpMM' => 'http://ns.adobe.com/xap/1.0/mm/',
        ),
        'Iptc4xmpCore' => 
        array (
          'CountryCode' => 'CHE',
        ),
        'Iptc4xmpExt' => 
        array (
          'LocationShown' => 
          array (
            0 => 
            array (
              'Sublocation' => 'am Hafen von Zug',
            ),
          ),
        ),
        'dc' => 
        array (
          'creator' => 
          array (
            0 => 'SINUS / Markus J. Hässig',
          ),
          'format' => 'image/jpeg',
          'language' => 
          array (
            0 => 'invictus online',
          ),
          'rights' => 
          array (
            0 => 'Copyright© und alle Rechte bei www.sinus.ch',
          ),
          'title' => 
          array (
            0 => '20150320-1805-255628-s-coo-weinmesse_a.nef',
          ),
        ),
        'photoshop' => 
        array (
          'AuthorsPosition' => 'Chef-Fotograf',
          'CaptionWriter' => 'Markus J. Hässig',
          'City' => 'Zug',
          'ColorMode' => '3',
          'Country' => 'Switzerland',
          'Credit' => 'Fotoagentur SINUS, Aarau/Schweiz',
          'DateCreated' => '2015-03-20 18:05:02',
          'Headline' => 'Weinmesse Zug / Zugersee',
          'ICCProfile' => 'sRGB IEC61966-2.1',
          'Instructions' => 'Die Verwendung dieses Bildes ist honorarpflichtig. Weitere Informationen sind ersichtlich auf www.sinus.ch oder erhältlich bei Fotoagentur SINUS, Schweiz.',
          'LegacyIPTCDigest' => '1006F89ECFB8DD073E969EE59EDA50B7',
          'Source' => 'cam',
          'State' => 'Kanton Zug',
          'SupplementalCategories' => 
          array (
            0 => 'sinusfoto',
          ),
        ),
      ),
    

    As you can see, the naming conventions in the above data are somewhat different from the names in your post, e.g., {File.MD.XMP::photoshop\Headline\Headline\0} appears in my data as xmp:photoshop.Headline. In a similar way, {File.MD.XMP::iptcExt\LocationShownCity\LocationShownCity\0} is xmp:Iptc4xmpExt.LocationShown.0.Sublocation. You should be able to work out the other names from these examples.

    For your information, here are the relevant IPTC fields populated in the file:

      'mla_iptc_metadata' => 
      array (
        '2#120' => 'Anliker, maschinen',
        '2#122' => 'Markus J. Hässig',
        '2#105' => 'anliker',
        '2#040' => 'Die Verwendung dieses Bildes ist honorarpflichtig. Weitere Informationen sind ersichtlich auf www.sinus.ch oder erhältlich bei Fotoagentur SINUS, Schweiz',
        '2#080' => 'SINUS / Markus J. Hässig',
        '2#085' => 'Chef-Fotograf',
        '2#110' => 'Fotoagentur SINUS, Switzerland',
        '2#115' => 'cam',
        '2#005' => '20081029-1532-103961-s-kun-anliker.nef',
        '2#055' => '20081029',
        '2#060' => '153203+0100',
        '2#062' => '20081029',
        '2#063' => '153203+0100',
        '2#090' => 'Kloten',
        '2#095' => 'Kanton Zürich',
        '2#101' => 'Switzerland',
        '2#100' => 'CHE',
        '2#020' => '>sinusbild',
        '2#116' => '©2008 Copyright www.sinus.ch, All rights reserved',
        '2#065' => '',
        '2#200' => '12848',
        '2#201' => '24388',
        '2#202' => 'anlik961',
        '2#203' => 'RAW-Original, bereit für Kopien, ,  (noch) keine Bildbearbeitung',
        '2#231' => '30.10.2008 08:37:00: 1 Nummerntank: Bildname, Infos, Zeitordner
    30.10.2008 08:49:38: 2 Info-Sammler: Properties in iptc (automatisch)
    02.11.2008 16:39:47: 3 Wahl-Tresor: RAW-ORIGINAL bereit für Kopien-Erstellung
    02.11.2008 17:59:56: 4 Kopienscanner: von diesem Original Kopien gescannt
    02.11.2008 17:59:56: -- ORIGINAL MIT KOPIE ARCHIVIERT --
    10/6/2014 9:17:09 PM: 2 Info-Sammler: Properties in iptc (ready for IM5)
    10/7/2014 8:24:18 PM: 2 Info-Sammler: für Übertrag in IM5',
      ),
    

    Based on the above I believe I can give you a start on mapping metadata to fields such as “Filter Tag”. I can’t test this unless you give me a specific file that contains the xmp:dc.subject value, but you can give this a try:

    1. Go to the Settings/Media Library Assistant IPTC/EXIF tab.
    2. If you want to apply the rule to new items as they are uploaded, check the “Enable IPTC/EXIF Mapping when adding new media” and “Enable IPTC/EXIF Mapping when updating media metadata” boxes.
    3. Locate the “Filter Tag” rule entry in the table and click the “Edit” rollover action.
    4. In the “IPTC Value” dropdown control leave the default “- None (select a value) -” in place.
    5. In the “EXIF/Template Value” text box enter template:([+xmp:dc.subject+]).
    6. In the “Priority” dropdown, select “EXIF”.
    7. In the “Existing Text” dropdown, select “Replace” to replace existing term assignments or “Keep” to add the terms generated by the rule to any existing assignments.
    8. In the “Option” dropdown, select “Array”.
    9. In the “Delimiters” text box, enter “;” (semicolon).
    10. Scroll down to the bottom of the screen and click “Update”.

    Once you define a rule you can apply it to a single item, multiple items or all items:

    • To map a single item, go to the Media/Assistant submenu and click the thumbnail of the item you want (or click the “Edit” rollover action) to get the Media/Edit Media screen. You can click the “Map IPTC/EXIF metadata” link to run your rules on this item, then scroll down and look at the “Att. Categories” meta box to inspect the results.
    • To map two or more items, go to the Media/Assistant submenu and click the checkbox next to the items you want. Then, select “Edit” from the “Bulk Actions” dropdown above the checkboxes and click “Apply” to open the Bulk Edit area. Click the “Map IPTC/EXIF metadata” button to run your rules on the selected items.
    • To map all of your items, stay on the Settings/Media Library Assistant IPTC/EXIF tab and click the “Execute” rollover action for the App. Categories rule. This may take a while.

    I suggest template:([+xmp:dc.subject+]) because the parentheses around the substitution parameter will gracefully ignore files that do not contain a value in the field.

    You can adapt the above instructions for your other fields, changing the template for each field:

    • Titletemplate:([+xmp:photoshop.Headline+])
    • ALT Texttemplate:([+xmp:photoshop.Headline+] copyright by SINUS)
    • Descriptiontemplate:([+xmp:Iptc4xmpExt.LocationShown.0.LocationShownCity+])(-[+xmp:Iptc4xmpExt.LocationShown.0.LocationShownProvinceState+])( - [+xmp:dc.Description+])

    I hope the above instructions are clear enough to get you started. I will leave this topic unresolved for now in case you have problems or further questions regarding the assumptions I made and the suggested solutions.

    Thread Starter mjhasinus

    (@mjhasinus)

    Hi David
    Thanks a lot for your work, your really hard work!
    I have already read your text, very deep and good.
    But as you can understand, I hope, it takes some time for me to understand.

    But I will check this carefully and see, that I understand all fully.
    Would you mind, let this still open?

    I will answer better for this all and have maybe also some questions, but before doing this, I will try to understand it better.

    I hope, you can let it for some time open, I will post again for sure.
    And I think really, after success, after understandig it better, I will write a blog for other users, because help is important.

    After a looooon search I found e.g. this here helped me a lot and this was really very helpful.
    Nevertheless I want understand it better.

    Best wishes, David, on a good and successful week, with lots of satisfaction and good feeling.

    Marcus

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your kind words and for your update. Thanks as well for including a link to the Birger blog post, which I was not aware of. The blog post was created in 2015 and shows an older version of the MLA Settings pages, but the template information and other details should still be accurate.

    I will leave this topic open and await good news on your further progress.

    Thread Starter mjhasinus

    (@mjhasinus)

    David,
    thanks for letting this open for now.
    Just for you a link, maybe you know, maybe not:
    riese-templates

    No need to answer (you have enough to do, I guess), I will check more and again post here, if I know more. 🙂
    Have a good week,
    best wishes
    Marcus

    Plugin Author David Lingren

    (@dglingren)

    It has been a month since the last post in this topic. I hope you have found everything you need for your application.

    I am marking this topic resolved, but please update it if you have problems or further questions regarding the metadata access suggestions in the earlier posts. Thanks for sharing your application details and for your interest in the plugin.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Some basic question about use iptc-xmp-fields for wordpress’ is closed to new replies.