schussman.com logo

Frames and borders with Lightroom 2

Update 7/26/2009: There are some fantastic new features of LR2/Mogrify to check out:

  • Relative-sized borders (which I’ve written about before) are super.
  • As is relative-sized annotation text. No more calculating your scaled text size to apply to an export, since you can set the size to a percentage of image width or height. Very cool. (This goes for watermarks, too)
  • More border features! A checkbox for “identical borders” makes it much easier to set uniform borders. And inner borders are now supported for the creation of an inset frame with variable opacity.
  • Setting compression by file size: Specify a file size and LR2/Mogrify will compress the image accordingly so as not to exceed that file size.

Give these a try and don’t forget to donate to Timothy’s work if you find it of use.

Update 12/21/2008: Much of this writeup now has more historical than practical value, since Timothy Armes has updated LR2/Mogrify to support multiple border options within the plugin’s own control panel. You can specify different-sized frames & borders without any extra monkeying around. Nice work, Tim!

A question recently came up in one of the Lightroom groups over on flickr about creating images with large borders on just one side — space within a frame to place a title, for example, but just along a single edge of an image. The poster wanted to create images such as those found here, and wondered if it was doable without diving out to an external tool like Photoshop. The first working proposal was to use a graphical frame applied in the print module, but that isn’t an ideal solution for me; it still requires setting up that frame with something like Photoshop, and to apply it you have to switch modes. So I tinkered a while with a photo I took a couple of nights ago, and managed to get what I think is a nice solution via a direct export from Lightroom using the fantastic LR2/Mogrify plugin from Timothy Armes.

The out-of-the-box options for this plugin don’t provide a capability to create different-sized borders to an image, but the underlying engine for the plugin, Imagemagick’s mogrify tool, does — after a fashion. So, in a nutshell, the trick is to use the command line element of LR2/Mogrify in addition to its other features, to add to the picture’s canvas size before performing the other operations.

Monte Vista neon

There are just a couple of tricks to get this to work smoothly using LR2/Mogrify. First is to add the extent command to the mogrify configuation, specifying the resulting size of the image you want to export:

I’ve specified the command -background white -extent 3008×2158 to be prepended to the mogrify command line that LR2/Mogrify will execute for me. I’m exporting an original image that’s 3008×2008, so I’ve specified 2008×2158 to the final image — adding 150 pixels, which will be filled with a white background. Next I use the built-in features of LR2/Mogrify to add the colored frames and the text overlay.

Because the extent command was applied to the beginning of the command line, the borders will be applied to the new image — the one with the bigger lower border created by extent.

The text overlay is just a bit strange. Note that instead of specifying the text to fall at the bottom, I’ve placed it at the top center of the image, with an offset of 2158 pixels. For some reason, directly placing it at the bottom center reverses the position of the new white border — it ends up at the top of the image, through some kink of mogrify that I can’t quite sort. It’s easy enough to compensate with the offset.

Export away, and that’s all it takes. You’ve built an image with a nice broad frame and caption, all right from Lightroom’s export panel. No Photoshop or print module necessary. Fun.

  1. It’s a lot easier now. For a classy black border with a 1px black line on the outside is a matter of making two borders. I make the first border white and 10% of the picture’s relative size (800×800px image would have a border of 80px on the top and sides) and 20% (160px) on the bottom. Then I make a second border just simply 1px black on all sides. Then I put a graphic overlay at the bottom with my logo and info, etc. It looks classy, and the only thing i really need to change when exporting very different size pictures is my graphic overlay sometimes. I need to figure out a way to make it resize friendly.


    Sean    Jan 27, 06:13 PM    #
  2. Yep, you’re absolutely right, Sean. Newer versions of LR2/Mogrify let you specify multiple borders of arbitrary sizes to do exactly what you describe.

    I’ve thought about the resize thing, too. I think the best solution may just be to have a number of export presets to apply the borders and overlays dependent on the desired image size — so, a full-size preset, a half-size preset with borders/overlays adjusted accordingly, etc.

    Thanks for the visit!


    alan    Jan 27, 06:34 PM    #
  3. Wowwww, this is exactely what I was looking for! Thanks so much!


    — BM    Mar 16, 01:08 PM    #
  4. Hi!
    I do all the same, but I always get the white field at the top of my image, but not at the bottom.


    — timur555    May 8, 03:24 AM    #
  5. Timur — are you using the newest version of the plugin? It doesn’t require the workaround that I described here.


    alan    May 9, 07:36 AM    #
Name
E-mail (will be spam-armored)
http://
Message
  Textile Help