• Resolved carolyndelaney

    (@carolyndelaney)


    I’m trying to parse out the first keyword from the IPTC for the title and filename for my images. Example: Keywords “Denzel Washington, Titans, Movie” I want “Denzel Washington” to be used for both the Title and Filename of the image (adding the dashes for the filename). Is this possible?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This might be one of those annoying “not quite responsive” answers, but of course, that won’t stop me from butting in 🙂

    AFAIK, the only way to change the filename is to actually change it, prior to uploading. If you had the string you want in the Title/Object name field (or any field, really) it would be very easy to do in bulk in a GUI environment in Photo Mechanic and probably in ExifTool (CLI) as well. (I think. I’ve never actually done it in ExifTool)

    Equally easy to go in the other direction – filename to whatever field.

    WordPress, by default, maps the IPTC “Headline” field to its own “Title” field. So, again, super easy prior to upload to copy the base of the filename or the contents of Title/Object Name to Headline, and from there WordPress would take it the (WordPress) Title. And, of course, MLA can map stuff with great flexibility post-upload.

    (If I ever get past the sprawling opus on keywording that I’m doing now, a video and/or post on doing that very thing is near the top of my editorial calendar for my own blog.)

    However, to isolate one value from one of the keywords fields (There are two, sometimes three possibilities) doesn’t sound easy at all. My inclination would be to visit the ExifTool forum and ask around. If it’s possible at all, that would be the tool (pre-upload) that might be able. The people on the ExifTool forum are wonderfully helpful.

    All that said, MLA’s developer, who is also wonderfully helpful, may actually have the answer you really want at his fingertips.

    Good luck.

    -Carl

    Plugin Author David Lingren

    (@dglingren)

    Thanks, @carolyndelaney, for your question, and thanks, @carlseibert, for your comments.

    Carl’s right about the file name portion of your question. MLA does not have any features that let you change the actual name of the file attached to a Media Library item. I decided long ago that changing the file name had a number of side effects that I wanted no part of.

    You can, however, easily extract the first IPTC keyword and use it to populate the Title field or any of the other fields associated with the item.

    There are two MLA features that can help you compose a value for the Title field. First, in the Bulk Edit area you can use a Content Template in the Title textbox. Try something like this:

    template:[+iptc:2#025,single+]

    The template: prefix marks your entry as a Content Template, iptc:2#025 extracts the IPTC Keywords from the file metadata and the ,single format option value selects just the first keyword assigned to the file. You can find more information in the “Content Templates” and “Field-level IPTC Identifiers and Friendly Names” sections of the Settings/Media Library Assistant Documentation tab.

    You can also automate the process by defining an IPTC/EXIF mapping rule to fill the Title field as the item is uploaded or on demand after the upload.

    Both approaches are described in this earlier topic:

    Bulk Edit: Title, Alt Tag, descripion and so on broken on &

    For your specific needs, substitute “Title” for “ALT Text” and template:[+iptc:2#025,single+] for template:[+file_name+] when reading the earlier topic.

    I hope that gets you started on a solution for your application. 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 carolyndelaney

    (@carolyndelaney)

    Thank you both – @dglingren and @carlseibert! Have a great day!

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

The topic ‘Parse Keyword from IPTC in MLA’ is closed to new replies.