6 thoughts on “Set WordPress Image Caption with Jeffrey Friedl's Metadata Wrangler Export Filter”

  1. I've poked around with the options in Jeffrey Friedl's “Metadata Wrangler” Export Filter for Adobe Lightroom Classic. I created an export filter for when I export images to WordPress directly from Adobe Lightroom Classic. My filter adds camera information to the Title field of the image while becomes the image caption in WordPress. For example, the export filter template below creates an image caption like in example image that follows:{CameraName?{CameraName} | } {LensInfo?{LensInfo} | } {Aperture?{Aperture} | } {ISO?{ISO}}FujiFilm X-T2 | XF16-55mmF2.8 R LM WR @ 55 mm | f/2.8 | ISO 200I noticed right away that the lens name was not what I had expected. It was missing the Fujinon branding. This omission is not a limitation of Jeffrey’s export filter. The Metadata Wrangler Export Filter uses the information stored in Adobe Lightroom, which does not have the lens manufacturer information. The Metadata Wrangler can not extract information that isn't available. However, I wanted a solution.While reading the Template Token help page for Jeffrey’s plugins, I learned that a solution was possible if I used the special {LUA} token. This token allows you to execute arbitrary Lua code in Metadata Wrangler. I don't know Lua, but I learned enough from Jeffrey's examples on the help page and the Patterns tutorial on the Lua wiki to get some working code. All Fujinon images either start with XF or XC but I have XF lenses only. To test out my code, I downloaded Lua to my Linux server. The code snippet below is all I needed.{LUA= if Lens ~= 'XF*' then return sprintf("%s", "Fujinon") end }I combined that snippet with my existing filter template.{CameraName?{CameraName} | } {LUA= if Lens ~= 'XF*' then return sprintf("%s", "Fujinon") end } {LensInfo?{LensInfo} | } {Aperture?{Aperture} | } {ISO?{ISO}}FujiFilm X-T2 | Fujinon XF16-55mmF2.8 R LM WR @ 55 mm | f/2.8 | ISO 200All Fujinon images either start with XF or XC but I have XF lenses only. When or if the need arises, I may update the code to account for that.
    Share:

    Twitter
    Facebook

    Like this:

    Like Loading...


    Related

  2. It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using ‘Content here, content here’, making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for ‘lorem ipsum’ will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

  3. Interesting, and very useful, though I don't use Lightroom.
    As a Linux user, I use XnView MP to manage my photos and Darktable for raw editing.
    I chose XnView MP years ago, specifically because of the control it gave me over metadata. I can mass change captions, etc., for a set of jpgs. I can also preset simple edits and captions when I need a quick fix for blog posts.
    Darktable allows metadata preset when loading a group of raw images, and creates the xmp file which carries the metadata into the final jpg. From there it's a matter of darg and drop to WP and everything is there.
    Gutenberg, which I really like, also makes caption editing much more efficient.

    The challenge which I haven't fully resolved yet, is captioning photos when I edit in Snapseed and upload directly from a mobile device.

    1. Hi Jerry,

      It's been a while since I looked at DarkTable. I stuck with Lightroom because of the camera + lens support and a large number of time-saving export plugins. I have a family and a job and limited time for my photography hobby. Anything that speeds up the workflow adds value. Take a look at the rest of Jeffrey's plugins.

      NOTE: I did the whole Linux desktop thing in the early 2000's. I was actually a member of the Linux User Group in Princeton and developed web apps on Linux for decades (built my first Linux server in 1994). Circa 2007, I realized that I could have a hardware and software supported desktop OS and all the goodness of UNIX/Linux by buying a Mac. Not a hater. Just a pragmatist. I still use Linux for all my websites.

      1. Hi Khurt
        I did have a few issues with DarkTable last year when I acquired a Lumix TZ100, but that appears to have been resolved. Of late much of my photography is headed for the blog, and I find Snapseed a better means of finishing that resolution of photo. I'm still doing the 9 to 5 as an IT Manager / Head of IT, though the family have grown up, but I am very pressured time-wise. As you say, anything that speeds up workflow... .

        Totally agree about the Mac. A few traumas in the last few years have left a budget choice of do a bit of travel, or invest in hardware. Travel won! It is a work in progress though.

        I'm very interested in some of your articles on the Indie-web. I do need to do some research I think.

Got some feedback? Please leave a comment below.

This site uses Akismet to reduce spam. Learn how your comment data is processed.