Select the sky in a photo and refine the edge
How to select sky in a photo, clean the edge around trees, hair and buildings, then darken, recolour or balance it against the foreground without halos.
To select sky in a photo, start with an automatic sky selection if your editor has one (Photoshop's Select > Sky, the Select Sky mask in Lightroom), or build it from colour and brightness if it does not. Then refine the edge where the sky meets trees, hair and rooftops, check it at full size, and only then darken, recolour or rebalance the sky. The edge, not the selection, is where most sky edits fall apart.
This guide works in any photo editor. Menu names below are from current versions and can move between releases, so check your editor's own help if a command is not where it is described. The guide also shows how the steps map onto the Photo room in cinemaOS Atelier, with its limits stated plainly.
Why skies are harder to select than they look
A clear blue sky over a flat horizon is easy. Real photographs rarely give you that. Four things cause most of the trouble:
- Fine detail against bright light. Branches, leaves, loose hair and wires let the sky show through in tiny gaps. A selection either misses those gaps or eats into the detail.
- Colour spill. Bright sky bleeds into the edges of dark objects. Even a perfect selection carries a thin rim of sky colour on the foreground side.
- Haze near the horizon. The sky gets paler and closer in tone to distant hills or buildings, so tools struggle to decide where one ends.
- Compression. A still pulled from video, or a heavily compressed JPEG, often has banding and blocky noise in the sky. Selecting and then pushing that area makes the damage obvious.
Step 1: make the first selection
- Automatic sky selection. Photoshop has Select > Sky, and Lightroom and Lightroom Classic offer Select Sky in the Masking panel. They handle ordinary daylight scenes well.
- Colour or luminance range. If there is no sky tool, or it struggles, select by colour or brightness instead. Photoshop's Select > Color Range, Lightroom's Luminance and Color Range masks, and GIMP's Select by Color all do this.
- Hand selection. For a hard horizon such as a sea line or a roofline, a simple polygon or gradient can be cleaner than any automatic method.
In cinemaOS, open the still in Atelier (⌘3), choose Photo, and ask J.A.R.E.D., the on-device assistant, to "Select the sky". It runs locally on your Mac with no generative credits. If the app reports that automatic sky detection needs the sky pack, install that pack first. Treat the result as a first pass, not a finished mask.
Step 2: refine the edge around trees, hair and buildings
Zoom to 100 percent and pan along the whole edge before you touch anything else. Look for three faults: sky left behind in gaps, foreground detail cut away, and a hard, jagged line on soft subjects.
Techniques that work in most editors:
- Add and subtract with a brush. Paint back missed gaps between branches and remove areas the tool grabbed by mistake, such as a pale wall or a white shirt.
- Intersect with a luminance range. Around foliage, limiting the selection to the brightest tones keeps the sky between leaves and drops the darker leaves themselves. Lightroom's Intersect option and Photoshop's Color Range are built for this.
- Use edge refinement where it exists. Photoshop's Select and Mask workspace has a Refine Edge Brush for hair and fur, plus Shift Edge, Feather and Decontaminate Colors. Use the refine brush on hair, not on rooflines that should stay crisp.
- Try a foreground-extraction tool for free. GIMP's Foreground Select tool separates a subject from its background and can help on hair and leaves, though it takes some patience.
- Feather by a small amount. A slight feather hides stair-stepping. A large feather spreads the sky edit onto the foreground and creates a glow.
- Shift the edge in small steps, in the right direction. If the sky selection stops short of the subject, a rim of untouched bright sky remains and shows as a halo once you darken. If it reaches into the subject, its edge darkens into an outline. Nudge the edge a pixel or two at a time and check both cases at 100 percent.
- Deal with colour spill separately. A sky-coloured fringe on the foreground side is not fixed by moving the edge. Photoshop's Decontaminate Colors, or a small desaturation brushed along the rim, handles it better.
In cinemaOS Photo, the mask brush adds to or subtracts from a selection. Work gently around foliage and hair and more precisely along buildings. When you want the sky as a separate, movable piece, use Layer from selection. There is no dedicated hair-refinement workspace like Photoshop's Select and Mask, so very fine flyaway hair against a busy sky is still careful brush work.
Step 3: darken the sky without creating halos
Darkening brings back cloud detail and leaves calmer space for a title. Keep it believable:
- Move tone, not just exposure. Pulling down the highlights or the white point keeps clouds bright while deepening the blue. Dropping overall exposure tends to make the sky muddy.
- Respect the light. In daylight, the sky is usually brighter than the ground it lights. If you darken it below the foreground, the photo starts to look like a composite.
- Watch the horizon. The sky is lighter near the horizon in most scenes. A selection that darkens it evenly from top to bottom flattens that natural gradient. Lighten the lower part of the selection, or use a gradient alongside it.
- Check for halos. A bright line around trees, heads or roofs means the edit stopped short of the foreground edge, or the feather was too wide. Go back to the edge, extend the selection slightly toward the subject, narrow the feather, or reduce the strength of the adjustment.
In cinemaOS Photo, adjustments such as Levels sit as layers above the photograph and blend with a Strength control, so you can back an edit off rather than redo it. Compare Original, Split and After under the canvas to catch halos. The photo tones tutorial shows Levels and Strength step by step.
Step 4: recolour the sky so the scene still agrees
Changing the sky's hue, from a flat midday blue to something warmer or cooler, is where selections are most likely to give themselves away. The sky lights everything under it, so a new sky colour with an unchanged foreground looks pasted on.
- Shift gently. Small hue and saturation moves read as a different time of day. Large moves read as an edit.
- Echo the colour in the foreground. If the sky turns warm, add a little warmth to foreground highlights, faces and reflective surfaces. A soft paint layer of light works well here.
- Remember reflections. Water, glass and car paint reflect the sky, so they should change with it.
- Check skin. A strong sky recolour near a face often spills into hair and skin at the edge. Protect skin with the brush.
In cinemaOS, painting light on its own layer is covered in the paint in layers tutorial: a soft brush, Soft Light blend mode and layer Opacity, all editable later.
Step 5: balance the sky against the foreground for a poster or still
On a poster or key art still, the sky often sets the mood and carries the type.
- Decide where the title goes first. If the title sits in the sky, darken or calm that area enough for the type to read at thumbnail size.
- Lift the foreground rather than only crushing the sky. Opening up shadows on the subject often balances the frame better than a heavy sky edit.
- Add grain to hide banding. Frames pulled from video and compressed images often band once the sky is pushed. A restrained grain over the whole image breaks up those steps. In cinemaOS Photo, Physical Grain sits with the Film looks and has its own Strength, shown in the film finish and sync tutorial.
- Check at delivery size. Look at the poster at the size people will see it, and at full size.
To build the poster itself, the editable photo cover tutorial adds text and image layers over the photograph, and making key art from your own frames covers choosing the frame. If the same image needs every poster and social size, see one brand kit across every aspect ratio.
A quick check before you export
- Pan the whole edge at 100 percent, especially foliage, hair and thin structures.
- Toggle the sky edit off and on to check that it improves the photo rather than just changing it.
- Look for halos, colour rims and banding in a Split view.
- Confirm reflections and skin agree with the new sky.
- Export a copy and keep the layered version, so you can return to the edge later.
FAQ
What is the fastest way to select sky in a photo?
An automatic sky selection, such as Select > Sky in Photoshop or Select Sky in Lightroom, followed by a few minutes of brush cleanup at full size. On scenes with heavy foliage, a luminance range intersected with that selection is often quicker than painting every gap.
How do I stop a halo appearing around trees after darkening the sky?
Halos usually mean the edit stops short of the foreground edge, leaving a band of untouched bright sky around it. Extend the selection a pixel or two toward the subject, reduce the feather, and lower the strength of the adjustment. If the rim is a colour fringe rather than brightness, treat it as spill and desaturate it instead.
Do I need Photoshop to select a sky?
No. Lightroom has its own Select Sky mask, GIMP can select by colour for free, and cinemaOS Atelier Photo selects the sky through J.A.R.E.D. with mask brush cleanup. For elaborate composites with complex hair masks, a dedicated edge workspace such as Photoshop's Select and Mask is built for the job, and cinemaOS is not a full replacement for it. For a wider look at the options, see the best photo editing software for Mac.
Try it on one still
Pick a photo with a difficult sky edge, a tree line or a portrait against bright cloud, and work through the five steps. If you want to try it in cinemaOS, the Photo room runs locally on Apple silicon Macs, and the 60-day free trial needs no card and has no automatic charge.