• Resolved jacquilyndesigns

    (@jacquilyndesigns)


    I added some jpg images to my wordpress library that have IPTC data I set in photoshop. I went in the settings > Media Library Assistant and set the title, description, alt text, etc to use various parts of the IPTC data (header, caption, copyright, etc). I set them to active and replace. I tried to use Execute All Rules: all complete, all unchanged, 0 successful.

    I tried to click map IPTC on individual images. Nothing changes. None of the fields in WordPress change at all; description, caption, alt, etc are all still blank.

    If I open an individual image in the media library, there’s even IPTC data in the Attachment Metadata field.

    What gives? Have I misunderstood this plugin or something? Does this plugin just not change WordPress image metadata? Is there some other plugin that does?

    Edit: I also uploaded one of my jpg files to https://www.imgonline.com.ua/eng/ and the IPTC came through just fine there.

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

    (@dglingren)

    Thanks for installing the plugin and the work you’ve done to set up and try out the mapping rules. It looks like you’re on the right track and understand how things should be working. If you can give me a bit more information, I can give you more specific help.

    This might seem silly, but have you checked the three “Enable IPTC/EXIF Mapping” boxes in the upper-left corner of the Settings/Media Library Assistant IPTC/EXIF tab?

    You wrote “If I open an individual image in the media library, there’s even IPTC data in the Attachment Metadata field.” On the Media/Edit Media screen, just below the “Attachment Metadata” box there should be another box labeled “Attachment File Metadata”. Is that box present, and does it show your IPTC data with labels such as iptc:2#005 =>? If you can post a link to one or more of your images I could have a look at the metadata.

    Can you post one or more complete descriptions of your rules, e.g.:

    Name: Title
    Description:
    IPTC Value: 2#005 object-name
    EXIF/Template Value:
    Priority: IPTC
    Existing Text: Replace
    Status: Active
    

    Mapping metadata to WordPress standard fields, taxonomy terms and custom fields is one of the most popular uses of MLA> I am confident you can make it work for your application. Any additional details you can provide will be helpful. Thanks for your interest in the plugin.

    Thread Starter jacquilyndesigns

    (@jacquilyndesigns)

    Thank you for the fast reply.

    I have checked the 3 boxes: Enable IPTC/EXIF Mapping, Enable IPTC/EXIF Mapping when adding new media, and Enable IPTC/EXIF Mapping when updating media metadata in Settings > Media Library Assistant > IPTC/EXIF (and clicked the save button). I don’t mind you checking, I’ve made dumber mistakes. We’re all only human.

    One of my images (at random) has this:

    Attachment Metadata

    array (
      'width' => 958,
      'height' => 376,
      'file' => 'C:/xampp/htdocs/test-site/wp-content/uploads/featured-img/code.jpg',
      'filesize' => 111804,
      'sizes' => 
      array (
      ),
      'image_meta' => 
      array (
        'aperture' => '0',
        'credit' => 'Jacq',
        'camera' => '',
        'caption' => 'Some of the code in the plugin I made for Atom',
        'created_timestamp' => '1667692800',
        'copyright' => 'Copyright Jacq of Jacq\'s Labz. All rights reserved.',
        'focal_length' => '0',
        'iso' => '0',
        'shutter_speed' => '0',
        'title' => 'Code',
        'orientation' => '1',
        'keywords' => 
        array (
          0 => 'code',
        ),
      ),
    )

    Attachment File Metadata

    post_id => 212

    I put this image up on github: https://github.com/JacqsLabz/images/blob/main/wp-media/code.jpg

    I also just took 2 screens of the IPTC data in PS & put them in that same repo: https://github.com/JacqsLabz/images/blob/main/wp-media/ps-basic.PNG & https://github.com/JacqsLabz/images/blob/main/wp-media/ps-iptc.PNG

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update and for the links to the example image; very helpful.

    Your “Attachment File Metadata” shows only the post_id, which MLA adds to whatever it finds in the file. If the rest of the content is empty it means there is no metadata in the image file.

    The most common reason for this is some sort of image compression/optimization plugin or other code that runs after WordPress collects its Attachment Metadata and before the file is stored in the Media Library. Are you running anything like that?

    I uploaded your code.jpg file to my system and it has lots of metadata, including these IPTC fields:

    post_id => 8881
    iptc:1#090 => %G
    iptc:2#000 => 24832
    iptc:2#120 => Some of the code in the plugin I made for Atom
    iptc:2#122 => Jacq
    iptc:2#105 => Code
    iptc:2#080 => Jacq
    iptc:2#085 => Author
    iptc:2#110 => Jacq
    iptc:2#115 => Jacq's Labz
    iptc:2#005 => Code
    iptc:2#055 => 20221106
    iptc:2#060 => 000000+0000
    iptc:2#101 => USA
    iptc:2#025 => code
    iptc:2#116 => Copyright Jacq of Jacq's Labz. All rights reserved.
    
    Thread Starter jacquilyndesigns

    (@jacquilyndesigns)

    That makes sense. I have your plugin installed on a test site that has too many plugins. It’s just a localhost I delete & reinstall from time to time.

    I see the button “Export ALL Settings”, is there any import all settings somewhere for the plugin? That would make it really easy for me to test your plugin on another local test site that hasn’t had dozens of plugins installed and uninstalled and isn’t currently running about 23 random plugins (some of which probably should not be enabled at the same time because they serve the same function & I’m just comparing them). I’m indecisive and all over the place. Local test sites are how I protect my real database from my nonsense.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for the feedback on my explanation. You can confirm the hypothesis by comparing the size of the file in your Media Library with the original size elsewhere. You can also open the Media Library copy to Photoshop and look for the “File Info…”.

    You asked “I see the button “Export ALL Settings”, is there any import all settings somewhere for the plugin?” Yes, there is, but it doesn’t show up if there’s nothing to import. If you click “Export ALL Settings” the page will refresh with a status message giving the location of the settings file (something like /wp-content/mla-backup/mla__options_20221119_922.txt). If you then scroll to the bottom of the page you will see the “Import all settings” button and a dropdown with the file(s) you can choose for your import. If you copy the file to the corresponding location on another system you can use it there. The file only contains settings that differ from the default values compiled into the code.

    I am marking this topic resolved, but please update it if you have problems or further questions about the metadata or settings suggestions above.

    Steve McNally

    (@stevemcnally)

    Once you Export ALL Settings, you’ll see the Import ALL Settings option in the same place you exported — the SettingsMedia Library AssistantGeneral page

    Copy the mla__options_XXXXXXXX_YYY.txt export to your other local test sites and Import ALL Settings from there

    Plugin Author David Lingren

    (@dglingren)

    Thanks, @stevemcnally, for your more concise version of my explanation. Great minds think alike.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘The IPTC data isn’t coming through’ is closed to new replies.