Skip to main content
Adobe Photoshop Family

71 Messages

 • 

3.4K Points

Mon, Apr 27, 2015 6:04 PM

Implemented

244

Lightroom: Ability to batch process Photo Merge (HDR and panorama)

Now that we have HDR inside Lightroom, with virtually no user input, the next step is surely a batch facility for a folder full of bracketed images.
Please!!!!

Responses

37 Messages

 • 

1.1K Points

4 years ago

Yes, need batch processing. This should be a no-brainer to implement, and the current workflow is terrible.

1 Message

 • 

62 Points

4 years ago

Would love to see HDR batch processing in LR, would purchase a new edition based this feature alone.

6 Messages

 • 

110 Points

4 years ago

I found a way to script Lightroom HDRmerge with Autohotkey. It was actually pretty simple but took me several hours to figure out. Sort the library by rating. Set all photos to 0 rating. Set filter to RAW and Unrated only, then select the first image on top left corner. Run this Autohotkey script and press Ctrl 8.

^8:: ; This is the hotkey change to what you like

Sleep, 1000 ; Wait 1 second

Loop, 4

{ ; Change number of loops to the number of bracket sets

IfWinNotActive, catalog6 - Adobe Photoshop Lightroom - Library ; Change to your lightroom window name

{

break

}

Send, {SHIFTDOWN}{RIGHT}{RIGHT}{SHIFTUP}{CTRLDOWN}{SHIFTDOWN}h{CTRLUP}{SHIFTUP} ; 2 rights for 3 braket add extra right for each additional bracket

Sleep, 4900 ; change your sleep time before rating

Send, 5 ; change your rating from 1 to 5

Sleep, 3500 ; change your sleep time after rating

}

return

What happens is shift right right will select 3 brackets. Then CTRL SHIFT H to start the merge headless. Wait a few seconds, rate the 3 RAW as 5 star. Since filter is set to unrated, the 3 RAW will drop out of the selection, and to the bottom of the library (sort by rating) and disappear. The first unrated RAW on top left is automatically selected by the UI. Code will loop again.  If for some reason the UI does not select the first image, you will have to add a mouse click command with XY coordinates (don't know how to do that, you'll need to research this command).

I'm not sure of the ";" in my script is actually a comment, so if your script does not work, delete all the commends including the ";" and spaces.  Also, if nothing else works, double check that the correct Lightroom window name is used in IfWinNotActive, because that will break the script.

I set the sleep times so that only 1 job is running at a time.  I don't know if it is slower or faster to run jobs concurrently.  You should adjust the sleep times to how fast your processor merges each set, and whether you want in parallel or consecutive. My CPU seems to take 8 to 8.5 seconds per 3x set.

To run Autohotkey scripts, copy and paste this into a text file and save it with extenion .ahk.  Download Autohotkey from a good source, the official website.  Don't get it from other sites because they may be malware. Double click the .ahk script to run it.  Open to the Lightroom window and set the filters and selection as described above, and press the hotkey CTRL 8. It will stop if you change the active window.

6 Messages

 • 

110 Points

4 years ago

Ok. Here is a more advanced script for series or parallel processing. I found parallel processing is 75% time of series processing. Don't need to play with ratings filter anymore. Only filter by RAW, and either select the first top left image or select no images , then press crl 6 or 7 to start the script.

^6:: ; series processing

Sleep, 1000

MyNumOfSeries := 4

MyNumOfImagesInSet := 3

MyNumOfImagesInSet--

MyWindowName := "catalog6 - Adobe Photoshop Lightroom - Library"

MySleepSeries := 8300

MySleepTime := 200

Send, {ALTDOWN}{LEFT}{ALTUP}

Loop, %MyNumOfSeries%

{ IfWinNotActive, %MyWindowName%

{

Pause

}

Loop, %MyNumOfImagesInSet%

{

Send, {SHIFTDOWN}{RIGHT}{SHIFTUP}

}

Sleep, %MySleepTime%

Send, {CTRLDOWN}{SHIFTDOWN}h{CTRLUP}{SHIFTUP}

Sleep, %MySleepTime%

Send, {ALTDOWN}{RIGHT}{ALTUP}

Sleep, %MySleepSeries%

}

return




^7:: ; parallel processing

Sleep, 1000

MyNumOfSeries := 1

MyNumOfSetsInParallel := 4

MyNumOfImagesInSet := 3

MyNumOfImagesInSet--

MyWindowName := "catalog6 - Adobe Photoshop Lightroom - Library"

MySleepSeries := %MyNumOfSetsInParallel% * 4500

MySleepTime := 200

MySleepTimeExtra := 75



Send, {ALTDOWN}{LEFT}{ALTUP}

Loop, %MyNumOfSeries%

{ MySleepTime := 200

Loop, %MyNumOfSetsInParallel%

{

IfWinNotActive, %MyWindowName%

{

Pause

}

Loop, %MyNumOfImagesInSet%

{

Send, {SHIFTDOWN}{RIGHT}{SHIFTUP}

}

Sleep, %MySleepTime%

Send, {CTRLDOWN}{SHIFTDOWN}h{CTRLUP}{SHIFTUP}

Sleep, %MySleepTime%

Send, {ALTDOWN}{RIGHT}{ALTUP}

MySleepTime += %MySleepTimeExtra%

}

Sleep, %MySleepSeries%

}

return




^0::Pause ; pause on 1st press or resume on 2nd press

1 Message

 • 

64 Points

4 years ago

Also it would be great if the newly generated HDR images were automatically added to the original images' collection (stacked on top of them would be just perfect, IMHO).

3 Messages

 • 

126 Points

4 years ago

For those of you who like to tinker with scripts, there is an application called AutoHotkey where you can automate all kinds of routine processes on a PC.  Be sure to download the AutoHotkey macro recorder (you may have to search around the internet a bit to find it, or get another version of macro recorder from a third party) but you can basically follow these steps to automate HDR processing in LR using this application.

Before beginning, download and install AutoHotkey http://ahkscript.org/ and this copy which includes the macro recorder (while the link lasts) https://web.archive.org/web/20150908182356/http://www.autohotkey.com/download/AutoHotkey.zip

1. Stack your LR brackets using auto stack (I do a 3 shot bracket on my camera with the timer so they are all within 5-6 seconds, adjust to yours as needed so they stack neatly, check for stack errors before beginning)
2. Run the Macro Recorder and start recording (the first time only, just to write the script)
3. Click your first thumbnail in the timeline (stacked images) and hit CTRL SHIFT H to start the HDR merge (Before you do this you may want to run a manual/GUI HDR merge from the right click menu to make sure the settings in LR are what you want as it repeats your last HDR options with the CTRL SHIFT H keyboard shortcut)
4. stop the macro recorder and save the script somewhere you can find easily (desktop) with the .ahk extension
5 Right click and "edit" your script to add the following:
  A. Move the mouse moves, clicks, window focus, and other commands to the top so they are not repeated in the loop
  B. add the "loop" command and  the number of times to loop the script (100 in my example) to repeat the HDR merge again after advancing:  loop, 100 {   }
  C. Add the "wait" command to wait for the HDR merge to complete before advancing (I set mine to 10000ms but on slow computers you may want to do 20s (20000ms, etc.)
  D. Add a command for "Arrow Key Right" to advance to the next image once the HDR is complete
6. test it out and see what happens by running the script you saved
7. Once your script works, just follow step 1, then run the saved script from wherever you saved it.

Here is an example of my script, yours will have different data depending on what your catalog is named, etc.  I do not offer support on this product so don't ask, but for those willing to figure it out it is worth the time.  You do need to run the macro recorder to get most of this, then add the rest of the info from my script example.


WinWait, 2016 Catalog - Adobe Photoshop Lightroom - Library,
IfWinNotActive, 2016 Catalog - Adobe Photoshop Lightroom - Library, , WinActivate, 2016 Catalog - Adobe Photoshop Lightroom - Library,
WinWaitActive, 2016 Catalog - Adobe Photoshop Lightroom - Library,
MouseClick, left,  67,  665
Sleep, 100
Loop, 100
{
Send, {CTRLDOWN}{SHIFTDOWN}h{SHIFTUP}{CTRLUP}
Sleep, 100000
Send, {RIGHT}
}

6 Messages

 • 

110 Points

4 years ago

I tested a few different HDR software and I found that SNS-HDR gives much better results, and it has batch process.  Compared to LR HDRmerge, the highlights in SNS-HDR is extremely better, because SNS-HDR has many more sliders that affect a specific range of the histogram.  It also has realtime preview, which means the image updates instantaneously as you adjust the sliders. I've now changed my workflow to use SNS-HDR for the bracket processing, although it does cost an extra 85 € to buy the software, I think the cost is worth it.  It was much better and more realistic than Photomatix or EasyHDR.  It is a bit slow though, but with the batch function, I start the process and do something else in the meantime.
So first I shoot in RAW with AEB brackets, then in LR I only adjust exposure, highlights (-50), shadows (+30), NR, sharpening, CA removal.  Copy Paste to all and then export to TIFF.  Then bring into SNS-HDR for processing.  It's important not to use Clarity (and maybe Contrast) (or other extreme localized adjustments) because it will not globally affect all bracketed images the same way, which will interfere with the tone mapping in HDR software.

6 Messages

 • 

230 Points

4 years ago

I don't think SNS is compatible with Apple ??
True-Not-True??

12 Messages

 • 

306 Points

Nope, I think it is windows only.

1 Message

 • 

60 Points

4 years ago

I would also love to batch process HDRs in LR for Real Estate photography.  It gets tedious and very time consuming, which is a problem because the pricing is based on the fact that agents are repeat customers, and get lower pricing for their volume than portrait clients.  As they say, efficiency is of the essence... 

1 Message

 • 

60 Points

4 years ago

Batch HDR, like the After Effects batch render!!! Please!!! Merge  > HDR  > Send to Batch

1 Message

 • 

60 Points

4 years ago

I too would like to get batch HDR processing in LR, use it for real estate photography. Adobe can do this easily.

1 Message

 • 

60 Points

4 years ago

LIGHTROOM CC HDR MERGE BATCH!!!!!!! LIGHTROOM CC HDR MERGE BATCH!!!!!!! LIGHTROOM CC HDR MERGE BATCH!!!!!!!

I am a professional Real Estate Photographer.. and this is why I bought the suite! 3rd party software to Lightroom to photoshop is still far less time consuming then CTRL-H, CTR-H Ctrl H... then wait 5 minutes come back and repeat 30 times!!!!!! I know they say somethings are worth the wait.. but come on!!! I spend all day just merging, then even more time adjusting. So here is my recommendation...

1. allow us to group each multi exposure capture into stacks, then select all stacks and batch merge!
----- merge each stack one at a time in order instead of 3 to 5 hdr's processing simulataneously, eating up the resources and possibly crashing.

2. Instead of putting each HDR image at the end of the whole project, put the HDR image to the right of each respective stack. So if I shot 3 different hdrs wihtout moving my tripod i can clearly see each HDR belongs to the stack to it's left. or some other way to clearly tell which hdr  belongs to which stack. Sometimes I want to bring the HDR and one of the darker exposures into layers in photoshop to manually mask out the windows.

PLEASE PLEASE Create this feature. it seems like such an easy add with adobe's skills.

5 Messages

 • 

152 Points

Hi Jeff, I 100% support the batch merge but I noticed that there's already a solution for your second problem. It sounds like you're importing the images then immediately stacking then merging and a bug I've found with Lightroom is it likes to reset it's sorting to "Capture Time". A simple fix is if you change that back to "File Name" your HDR merged images will be right next to your stack :)

12 Messages

 • 

306 Points

I have that sorting problem happen to me all the time too. It drives me absolutely nuts because each time it happens, it has just been long enough for me to forget how I fixed it the last time. Lightroom really just sucks if you are trying to work with multiple files.  :(

5 Messages

 • 

152 Points

I made a mistake in my comment. It doesn't change it to "Capture Time", it changes it to "Added Order". Just switch it to "File Name" and your problem will be solved.

2 Messages

 • 

72 Points

4 years ago

Please, Adobe, make an HDR batch-processor!

2 Messages

 • 

72 Points

4 years ago

An option for HDR batch processing is Google Photos. Just upload everything to a folder in Google, and in a few hours, the Assistant will create HDRs for you. They're smaller file sizes and it doesn't always create all of them, but they're high quality. And free.

9 Messages

 • 

250 Points

3 years ago

bump for this!

Even just sequential processing instead of parallel instead would be a bloody godsend... then you can just smash through the selections and hitting Ctrl+Shift+H and it'll do them sequentially much faster.