• Resolved Steve McNally

    (@stevemcnally)


    I have a variation on this resolved question: Mapping IPTC to ALT Text.

    In that topic, @ways2read successfully mapped xmp:Iptc4xmpCore.AltTextAccessibility with an “EXIF/Template Value” of template:([+xmp:Iptc4xmpCore.AltTextAccessibility+]) as provided by David. 

    I’m not having success mapping xmp:AltTextAccessibility-en-US in the source file. I’m not even seeing this value in Attachment File Metadata or Attachment Metadata in Media Library Assistant.

    Running exiftool against the source file shows the metadata field:values are present with or without -xmp:All e.g.

    Alt Text Accessibility (en-US) : Rupert needs daily meds. Dobby is an older fellow. Nuri is being rescued internationally. Each of these three dogs need foster care, donations and adoption. They’re small, sure, but Gregor ‘The Mountain’ Clegane loves his Pom. You can, too, tough guys!

    I’ve executed the rule with the following values:

    • template:([+xmp:AltTextAccessibility-en-US+])
    • template:([+xmp:AltTextAccessibility+])
    • template:([+xmp:Iptc4xmpCore.AltTextAccessibility+])

    None have succeeded for me. I’m asking here before I try others. Many thanks for your time and attention, and thank you again for this plugin.

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

    (@dglingren)

    Good to hear from you again. Thanks for digging through the earlier topic and trying variations on that solution. Is the image at the bottom of your post the file you need help with? I downloaded a copy as “AI-WP-II-QA-Session-Notes-–-WordPress-Los-Angeles-Meetup.png” and added it to my development site. I see some XMP metadata, for example:

    xmp:description => Rupert needs daily meds. Dobby is an older fellow. Nuri is being rescued internationally. Each of these three dogs need foster care, donations and adoption. These are the actions we walked through together live + Q&A and updates since.

    I don’t see the values you are interested in, though. If that’s the original file I will investigate further. If not, can you post a link to a file or contact me at my web site to email a file? Thanks for any files you can share and for your continued interest in the plugin.

    Thread Starter Steve McNally

    (@stevemcnally)

    Thank you, David. Yes – That is the original file. That file and these others have values for xmp:AltTextAccessibility-en-US

    From the server, running exiftool against these same files shows values for Alt Text Accessibility (en-US). xmp:description has the same value as that successfully maps to ALT Text in MLA.

    exiftool AI-WP-II-QA-Session-Notes-–-WordPress-Los-Angeles-Meetup.png
    ExifTool Version Number : 10.80
    File Name : AI-WP-II-QA-Session-Notes-–-WordPress-Los-Angeles-Meetup.png
    Directory : .
    File Size : 284 kB
    File Modification Date/Time : 2023:10:06 18:12:59-04:00
    File Access Date/Time : 2023:10:06 18:12:59-04:00
    File Inode Change Date/Time : 2023:10:06 18:12:59-04:00
    File Permissions : rw-rw-r--
    File Type : PNG
    File Type Extension : png
    MIME Type : image/png
    Image Width : 625
    Image Height : 530
    Bit Depth : 8
    Color Type : RGB with Alpha
    Compression : Deflate/Inflate
    Filter : Adaptive
    Interlace : Noninterlaced
    XMP Toolkit : Image::ExifTool 12.40
    Alt Text Accessibility (en-US) : Rupert needs daily meds. Dobby is an older fellow. Nuri is being rescued internationally. Each of these three dogs need foster care, donations and adoption. These are the actions we walked through together live + Q&A and updates since.
    Description : Rupert needs daily meds. Dobby is an older fellow. Nuri is being rescued internationally. Each of these three dogs need foster care, donations and adoption. These are the actions we walked through together live + Q&A and updates since.
    Title : AI + ML + WP Workflows II on WPLA
    Image Size : 625x530
    Megapixels : 0.331
    Plugin Author David Lingren

    (@dglingren)

    Thanks for all the test files; very helpful. Further investigation revealed that the current MLA version does not parse out XMP values with language attributes other than “x-default”. The values you want have a specific language attribute, in this case “en-US”.

    I have uploaded a new MLA Development Version dated 20231014 that corrects the problem. You can find step-by-step instructions for using the Development Version in this earlier topic:

    How to download & install the current development version of MLA

    Once the Development Version is installed you can retest the handling of language-specific XMP metadata values. You should see the values in the Media/Edit Media page. The value you want should be accessed as:

    template:([+xmp:Iptc4xmpCore.AltTextAccessibility.en-US+])

    The fix will be part of my next MLA version, but in the interim it would be great if you could install the Development Version and let me know if it works for you. Thanks for alerting me to this MLA defect.

    Thread Starter Steve McNally

    (@stevemcnally)

    Thank you, David. The dev version you posted is working as designed. This topic is resolved. Many thanks for the quick turnaround and your excellent support as always.

    Immediately upon updating the plugin, the accessibility fields were visible in existing media Attachment File Metadata — Here’s one example:

    xmp:Iptc4xmpCore.AltTextAccessibility.en-US => JetPack AI helped us find people who love their Maltese and positioned to help Rupert.
    

    Executing the ALT Text mapping rule is also working as designed.

    Thread Starter Steve McNally

    (@stevemcnally)

    The dev update is also working with uploading new items and running rules in bulk.

    With the dev version and rule mapping updated, running ALT Text rule only where needed is super-helpful. From Media … Assistant, I selected the items, Bulk actions … Edit … Apply, then Map IPTC/EXIF/WP metadata and the existing items now have ALT Text.

    The flexibility to run MLA rules against one, many or all attachments is excellent. How these are woven into and exposed via post, Media Library and options pages reminds me to take more advantage of it.

    Thread Starter Steve McNally

    (@stevemcnally)

    Plugin Author David Lingren

    (@dglingren)

    Thanks for giving the Development Version a try and confirming the fix. Thanks as well for the additional comments and details; very helpful for other MLA users.

    I believe the Image block isn’t working because the link is a “pretty permalink” and not an actual file reference. Posting it as a link works fine, luckily.

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA v3.13, which contains the fix for the problem. I am marking this topic resolved, but please update it if you have problems or further questions regarding the handling of XMP metadata with specific language codes. Thanks again for working with me to test and resolve the problem.

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

The topic ‘Mapping xmp:AltTextAccessibility-en-US to ALT Text’ is closed to new replies.