- User guide
- Stack
Merge Foreground and Sky
Chapters9 of 19
Start
Stack
Edit
- Process and the NightScape Tools
- Basic Edits in Process
- Crop and Straighten
- Presets, History and Copying Edits
Output
Reference
On this page6 sections
A lot of good nightscapes are two photos in one: a foreground shot at blue hour or with a long low-ISO exposure, and a sky shot later, stacked or tracked. Merge Foreground and Sky puts them together. NightScape Lab finds the sky in the foreground photo with its AI sky mask, places your sky photo behind it, and opens the result in Process where you can move the sky and refine the edge.
The merge in the app is the basic version: get the two photos lined up, get the edge right, balance the sky against the ground. When you want to go further, export a layered PSD and you'll have the sky, the foreground and the mask as layers in Photoshop (Edit In, Export and Lightroom).
Shortcuts on this page are written the Mac way. On Windows and Linux, use Ctrl where you see Cmd and Alt where you see Opt.
Pick the sky and the foreground
The sky and the foreground can each be any photo except a dark: a stack, a star trails image, a developed frame, or a RAW straight from the camera.
Choose NightScape > Merge Foreground and Sky… to open the dialog. It fills in what it can from your selection and from the photos you've marked:
- Select both first. Select the two photos in the grid, then open the dialog from the menu, or right-click one of them and choose Merge Foreground and Sky…. The dialog shows both pictures, one marked Sky and one marked Foreground, with their file names. The one shot in far less light, by its exposure, becomes the sky, and a line under the pictures says so. When the two exposures are too close to tell, or one is a stack with no exposure of its own, the dialog asks: "Which photo is the sky? Click it." Merge stays greyed out until you click one. Swap between the two pictures trades them, and so does picking the other row's photo in a row.
- Select just one. A single selected photo becomes the foreground, and the sky you merged last time comes back as the sky.
- Mark them. A selected photo marked Sky or Foreground (see below) goes to its own slot, whatever order the two are in. If nothing in the selection fills a slot and exactly one photo is marked for it, that photo is used.
- Right-click in the grid. Right-click a photo and choose Merge Role > Merge as Sky… or Merge Role > Merge as Foreground…. The dialog opens with that photo filled in. The grid stays usable while the dialog is open, so you can right-click the other photo next.
- Choose from the lists. The dialog's Sky and Foreground lists name every photo in the catalog except darks.
One photo can't be both. If you give a photo to one side, the other side lets go of it.
Marking photos as sky or foreground
When you shoot both halves on the same night, it helps to mark them as you sort. Select photos and choose Photo > Merge Role, or right-click and use Merge Role. The submenu has Foreground, Sky and None. A base image can have a role too, and a stacked sky is the usual one.

Marked photos get an FG or SKY badge on their thumbnails, and the Foreground and Sky rows in the left panel's Photos section show just those photos.

The Merge Foreground and Sky dialog
Find, Sky and Foreground
A night's import makes for two long lists. Type part of a file name in Find (for example 02636) and both lists narrow to the names that hold it.
Until both photos are chosen, an empty list reads "Choose, or right-click one in the grid", and a line under the lists reminds you of the right-click route.
Framing
| Choice | When to use it |
|---|---|
| Auto-detect (default) | Let NightScape Lab work out which of the two below fits. It treats the pair as the same shot only when the two photos are the same size and their foregrounds line up. Anything else is a different sky. |
| Same shot (locked tripod) | Both photos were taken from the same tripod position with the same framing, such as a blue hour foreground and a night sky stack shot later without moving the camera. |
| Different sky | The sky comes from another shot: a tracked sky, another lens, or another place. |
Auto-detect gets it right on nearly every pair. Pick one of the other two when you know better than it does.
Color and grain
| Option | Default | What it does |
|---|---|---|
| Color match foreground to sky | On | Moves the foreground's color toward the sky's, so the two look like one night. The ground takes the temperature, tint and saturation of the sky just above its horizon, and keeps its own brightness when Keep foreground brightness is on. |
| Match strength | 100 | Shows when color matching is on. 0 to 100: how far the foreground's color moves. Lower it if the ground looks too strongly colored. |
| Keep foreground brightness | On | Keeps the foreground as bright as it was while its color is matched. |
| Match grain across the horizon | On | A stacked sky is cleaner than a single foreground frame (or the other way round), and the change in noise shows at the horizon. This adds the noisier side's own grain to the cleaner side near the horizon. |
| Close openings in the foreground | On | Windows, doorways and gaps between stones that the sky mask missed show the new sky from the start. One far below the sky area is outlined in yellow for Close Gaps instead. Off, they all are. |
What each photo brings with it
The merge keeps each photo's white balance and exposure. If you set Temp, Tint or Exposure on the sky or the foreground in Process before merging, the merge starts from the photo as you balanced it. (You'll see "Carrying white balance and exposure into the merge" for a moment.) The NightScape tool layers on each photo come along too.
The other Basic sliders (Contrast, Highlights, Shadows and so on) don't carry into a merge. Set those on the merged image afterwards.
Merge
Click Merge once both photos are picked.
If one of them is a RAW that hasn't been opened in Process yet, the dialog says "Preparing the RAW for the merge; it starts when it's ready." and the merge starts on its own once the RAW is ready. If another long job (a stack, panorama or star trails) is running, it says "The engine is busy; this will start when it finishes."
The result opens in Process
The merge runs in the background, with progress ("Merging foreground and sky") and a Cancel button in the bar at the top of the window. When it finishes:
- The merged image is added to the catalog, named after the foreground, for example
_DSC5120-Merge.tif. Both names (for example "Merge · _DSC5120.ARW + _DSC6175-Stack.tif", foreground first, then sky) are kept in its Caption. - It opens in Process with the Sky layer selected and the Move tool in hand. A message reminds you to drag to move the sky, and that Cmd+T resizes or turns it.
- The photo opens at the foreground's frame. The sky is usually bigger than that and reaches past the edges, out of sight.
- If the sky had to be enlarged to cover the sky area, the status line tells you by how much.
- If the engine had doubts (almost no sky found in the foreground, or a large sky-like area below the horizon such as a reflection), you'll see "The merge finished with warnings:" followed by what it found.

The merge's files stay in the catalog's Renders folder, and each time you click Apply in the Merge panel the new version is saved in a merges folder inside the catalog. Nothing is written beside your frames.
The Merge panel in Process
The Merge panel on the right of Process is where you place the sky and paint where each photo shows. Size and place the sky here, or select Sky in the Layers panel and drag it on the photo. Paint the mask to choose where each one shows, then apply.


The Layers panel shows two rows: Sky (with its mask) and Foreground. Selecting the Sky row gives you the Move tool. Clicking the mask thumbnail selects the mask for painting. Each row has an eye, and Apply and export write what's showing, so a layer with its eye shut is left out. Process and the NightScape Tools covers the Layers panel in more detail.
Placing the sky
| Control | Range | What it does |
|---|---|---|
| Sky size % | 10 to 400 | How big the sky is. |
| Horizontal | Moves the sky left or right. | |
| Vertical | Moves the sky up or down. | |
| Rotate | -45 to 45 | Turns the sky, in degrees. |
Double-click a slider's name to put it back where the merge placed it.
When the sky is larger than 100%, the panel says so, for example "Sky enlarged to 135%: a larger sky plate reads sharper." If part of the sky area has nothing behind it, you'll see "Part of the sky area has no sky. Fill Sky Area places the sky to cover it."
Fill Sky Area places the sky so it covers all of the sky area, openings included, with the sky photo's own horizon just under them.
Reveal All
A new merge is the size of the foreground. Reveal All makes the canvas big enough for the whole sky and the foreground, so you can see all of the sky, move things around and crop to a new frame. Past the foreground's edges only the sky photo's sky shows. Its ground never does.
A few things to know:
- Reveal All is off while the photo has tool layers. Delete them first, since they're the size of the canvas as it is.
- The canvas can't grow while Straighten or Lens Corrections are set on the merge. The app says so. Reset them first.
- If the sky already sits inside the photo, there's nothing to reveal and the app tells you.
- On a grown canvas, the NightScape tools wait until you crop the merge to the photo. They can't work on the empty canvas around it.
The Move tool (V)
Press V to pick up the Move tool on the Sky layer. Drag anywhere on the photo and the sky moves by as much. The arrow keys nudge it one pixel (with Shift, ten). Hold Space to pan a zoomed photo instead. Press Esc to put the Move tool away.
Free Transform (Cmd+T)
Click Free Transform or press Cmd+T to get the sky's outline, corners and horizon drawn on the photo.

| To | Do this |
|---|---|
| Move the sky | Drag inside it. |
| Scale it | Drag a corner (it scales from the opposite corner; hold Opt to scale from the center). |
| Turn it | Drag outside it (hold Shift for 15° steps). |
| Nudge it | Arrow keys move it one pixel (with Shift, ten). |
| Finish | Press Return or Esc to go back to the Move tool. |
Seeing the mask
Tick Show mask overlay (O), or press O, to see the mask over the photo.

Select Opening
Windows, doorways and gaps in a wall or an arch should show the new sky too. Click Select Opening, then click inside an opening and it joins the sky. Opt-click (or Shift+Opt-click) takes an area back to the foreground.
Tolerance (0 to 255, starting at 32) sets how far the selection spreads. Moving it redoes your last click with the new value.
If a line of the old sky shows around an opening you added, turn on Decontaminate Colors (below).
Close Gaps
With Close openings in the foreground on in the merge dialog, a merge adds sky the mask seems to have missed by itself: gaps between stones, the sky over a far ridge, an opening high in a wall. To take a window or doorway back, turn on Select Opening and Opt-click inside it. Anything else comes back with the Foreground brush.
An opening far below the sky area, or one the sky photo doesn't reach, is not added. It is outlined in yellow instead. With the option off every one of them is outlined, and nothing changes until you ask. When there are some, a Close Gaps button appears with the count, for example Close Gaps (3). Click it to add them all. With Select Opening on, clicking inside one outline adds just that one.
Brushes
For everything else, paint the mask by hand.
| Control | Range | Default |
|---|---|---|
| Brush | Off, Sky, Foreground | Off |
| Size | 5 to 400 | 60 |
| Feather | 0 to 100 | 50 |
| Flow | 1 to 100 | 100 |
Paint with Sky where the new sky should show and Foreground where the foreground should. Picking a brush puts Select Opening away.
The brush takes the keys you know from Photoshop and Lightroom:
| Key | What it does |
|---|---|
[ and ] | Smaller and larger. |
| Shift+[ and Shift+] | Softer and harder (Feather up or down). |
| Scroll wheel over the photo | Brush size. |
| Control+Opt drag on a Mac, Alt+right-drag on Windows | Size the brush by hand, dragging left or right. |
Edges
| Control | Range | What it does |
|---|---|---|
| Decontaminate Colors | On or off | Takes the old sky's color out of the foreground's edges, so it doesn't fringe the new sky. On for a new merge. |
| Amount | 1 to 100 | Shows when Decontaminate Colors is on. Starts at 100. |
| Shift Edge | -100 to 100 | Moves the edge between sky and foreground. Starts at 0. |
| Fade Edge | 0 to 100 | Softens the edge. Starts at 0. |
Apply, Reset and undo
Nothing you do to the sky's placement, the mask or the edges is final until you click Apply. While there's something to apply, the button turns gold and the panel says it isn't applied yet, that it's kept if you quit, and that Cmd+Z steps back through it. So you can quit and come back, and Cmd+Z steps back through each change (Cmd+Shift+Z steps forward again).
Reset goes back to the last applied merge.
If the pixels under the merge's layers were replaced after the merge, the panel says "Another edit came after the merge. Undo back to the merge to change it." Basic, Lens Corrections, Crop and the Sky / Ground sliders never cause that. Neither do the NightScape tools: their layers sit on top and run again when you apply a merge change.
Sky / Ground
At the foot of the Merge panel is the Sky / Ground adjustment. It changes the sky and the ground apart, split by the merge's own mask, with four sliders for each:
| Slider | Range | Starts at |
|---|---|---|
| Exposure | -4.00 to +4.00 | 0 |
| Temperature | -100 to +100 | 0 |
| Tint | -100 to +100 | 0 |
| Contrast | -100 to +100 | 0 |

This is how you balance the two halves once they're together: lift the foreground half a stop, cool the sky a touch, add a little contrast to one side. These sliders work right away (there's no Apply for them), each move is its own History step, and they never lock the merge. You can still move the sky and edit the mask afterwards.
The adjustment is carried into TIFF and PSD exports and into Edit In.
What to do next
Once the sky sits right and the edge is clean:
- Click Apply.
- Run the NightScape tools you want on the merged image (Denoise, Defringe & SCNR and the rest).
- Make your basic changes in Basic, crop it, and hand it off with Edit In or Export. A PSD keeps the sky, the foreground and the mask as layers.