19th July 2007

Lightroom Post-Processing with ImageMagick

posted in windows |

This time i wanted to post-process my exported Lightroom images without opening Photoshop. So i decided to use ImageMagick which has helped me before in lots of other situations. The task was to realize some very fine sharpening and frame the image with some very simple white line and some black border. I’ll describe it for Windows users in this article but OSX users should be able to adopt this with AppleScript very easily. Thanks to Pascal Abaziou i was able to shorten the batch file script by using the shift command.

Step 1

Download the Binary Release of ImageMagick for Windows ( Win32 static at 8 bits-per-pixel ) right here and install it to the default location (for me it was like “E:\Programme\ImageMagick-6.3.5-Q8”) with all default installation settings.

Step 2

Create a new text file on your Desktop using your favourite text editor (Notepad, Wordpad, Textpad, …) and save it as “USM_Border.bat” to your Desktop. Now lets fill it with some content:

@echo off
echo Processing…
:loop
if “%1”==”” goto endloop
if exist %1 call “E:\Programme\ImageMagick-6.3.5-Q8\convert.exe” -unsharp 0.3×0.4+0.45+0.05 -unsharp 0.2×0.3+2.0+0.05 -bordercolor White -border 1×1 -bordercolor Black -border 30×30 %1 %1
shift
goto loop
:endloop

Ok, save the file changes. Lets go through these lines a little bit to see what we’ve done here … if exist %1 just checks if there was an argument (filename) delivered by Lightroom … call “E:\Programme\ImageMagick-6.3.5-Q8\convert.exe” just calls ImageMagick at the location we installed it before (change this if your installation path is another) … -unsharp just calls the Unsharp Mask Filter, if you want to read more about its options, just go here … -bordercolor -border just create the border …

Step 3

In Lightroom go to “Export” and in the “Post-Processing”-area you click “Go to Export Actions Folder Now”.

Lightroom Export Options

Next, move the previously saved batch file (“USM_Border.bat”) from your Desktop into Lightroom’s “Export Actions” folder.

Export Actions Folder

That’s it. Now you can choose the batch file in Lightroom’s “Post-Processing”-area as your “After Export”-action. You can download my recent batch file here.

Export Action Result

The result would look like this when exported as 300px image. It worked for me, but if you have any questions, just leave a comment here. (Sometimes this method won’t work if you have too many special characters in your file path or just spaces.)

This entry was posted on Thursday, July 19th, 2007 at 4:06 pm and is filed under windows. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

There are currently 35 responses to “Lightroom Post-Processing with ImageMagick”

Why not let us know what you think by adding your own comment! Your opinion is as valid as anyone elses, so come on... let us know what you think.

  1. 1 On September 16th, 2007, Pascal Abaziou - Photographies » Lightroom - export : mettre des bordures personnalisées said: [Quote]

    […] Pascal 16 Sep 2007   >> General Sur le site Pictures and code, cet article sur le post-traitement de l’export Lightroom explique comment exporter des photos sous lightroom avec des bordures simples avec un liseré […]

  2. 2 On September 16th, 2007, Pascal said: [Quote]

    On my site (in French, trackback before), i give a trick to avoid your use of nine calls to convert :

    just use a loop and the shift command : the script is shorter and not limited to 9 files.

    You can see the whole script on the post on my site.

  3. 3 On January 6th, 2014, pligg.com said: [Quote]

    Lightroom Post-Processing with ImageMagick …

    Lightroom Post-Processing with ImageMagick…

  4. 4 On March 20th, 2014, lunettes soleil ray ban cats 5000 rb4125 said: [Quote]

    lunettes soleil ray ban cats 5000 rb4125…

    dans le but de les farreneheit are generally custom l’emporte….

  5. 5 On April 30th, 2014, Watch Dogs Key Generator said: [Quote]

    Watch Dogs Key Generator…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  6. 6 On May 26th, 2014, how to draw caricatures step-by-step free said: [Quote]

    how to draw caricatures step-by-step free…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  7. 7 On May 29th, 2014, baseball games said: [Quote]

    baseball games…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  8. 8 On May 30th, 2014, tips for healthy diet said: [Quote]

    tips for healthy diet…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  9. 9 On May 31st, 2014, federal felony defense florida said: [Quote]

    federal felony defense florida…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  10. 10 On June 4th, 2014, marketing research said: [Quote]

    marketing research…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  11. 11 On June 6th, 2014, independent.academia.edu said: [Quote]

    independent.academia.edu…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  12. 12 On June 8th, 2014, ids said: [Quote]

    ids…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  13. 13 On June 16th, 2014, tampa criminal defense attorney said: [Quote]

    tampa criminal defense attorney…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  14. 14 On June 27th, 2014, l8t.com said: [Quote]

    l8t.com…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  15. 15 On July 10th, 2014, koreahealthlog.com said: [Quote]

    koreahealthlog.com…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  16. 16 On August 1st, 2014, internet capabilities said: [Quote]

    internet capabilities…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  17. 17 On August 12th, 2014, removals london said: [Quote]

    removals london…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  18. 18 On September 18th, 2014, Nishan Kohli said: [Quote]

    Nishan Kohli…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  19. 19 On September 20th, 2014, harris criminal county Records said: [Quote]

    harris criminal county Records…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  20. 20 On September 22nd, 2014, refrigerator-source.com said: [Quote]

    refrigerator-source.com…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  21. 21 On September 25th, 2014, better home said: [Quote]

    better home…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  22. 22 On September 28th, 2014, utah seo Review said: [Quote]

    utah seo Review…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  23. 23 On September 30th, 2014, 시알리스 구입 said: [Quote]

    시알리스 구입…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  24. 24 On October 1st, 2014, Garcinia Slim 500 Reviews said: [Quote]

    Garcinia Slim 500 Reviews…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  25. 25 On October 1st, 2014, pure Garcinia Ultra Reviews said: [Quote]

    pure Garcinia Ultra Reviews…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  26. 26 On October 3rd, 2014, garcinia ultra Reviews said: [Quote]

    garcinia ultra Reviews…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  27. 27 On October 3rd, 2014, procellis said: [Quote]

    procellis…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  28. 28 On October 4th, 2014, Mi40x Reviews said: [Quote]

    Mi40x Reviews…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  29. 29 On October 4th, 2014, Alpha Max Review said: [Quote]

    Alpha Max Review…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  30. 30 On October 6th, 2014, children of bodom said: [Quote]

    children of bodom…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  31. 31 On October 9th, 2014, Protosterone Review said: [Quote]

    Protosterone Review…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  32. 32 On October 11th, 2014, Muscle Gain Supplements Reviews said: [Quote]

    Muscle Gain Supplements Reviews…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  33. 33 On October 17th, 2014, useful content said: [Quote]

    useful content…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  34. 34 On October 24th, 2014, yelp.com said: [Quote]

    yelp.com…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

  35. 35 On October 25th, 2014, Dermaperfect Reviews said: [Quote]

    Dermaperfect Reviews…

    Lightroom Post-Processing with ImageMagick » Pictures and Code…

Leave a Reply