Sky Replacement
Swap a flat white sky for blue sky, clouds or a sunset: the sky is found automatically, the new one fitted and the landscape tinted to match.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Add your photo
Choose the landscape or building photo first.
- 2Optional sky photo
Add a second photo of a sky you shot.
- 3Choose a sky
Pick a built-in sky or your photo.
- 4Check the mask
Tick show the sky mask and adjust detection.
- 5Match the light
Set foreground matching and edge softness.
- 6Export
Download the new photo at full size.
About this tool
A great landscape or property photo can be spoilt by a white, overcast sky. Photographers often replace the sky in editing, but cutting around trees and rooftops by hand is tedious. This tool finds the sky automatically, replaces it with one of six built-in skies or with your own sky photo, and gently tints the foreground so the light matches the new sky.
How the sky is found
Sky pixels are usually bright, smooth and bluish or grey, and they are connected to the top of the picture. The tool marks candidate pixels with those properties, then grows the sky from the top edge through connected candidates, so a white wall lower in the picture is not mistaken for sky. Small holes such as birds or wires are filled and the edge is feathered. The lowest sky line setting stops the search below a certain height, which helps with lakes and white buildings.
Built-in skies
Clear blue, blue with clouds, golden sunset, purple dusk, soft overcast and starry night are generated in the browser, so there are no stock photo licences to worry about. The cloud variation slider gives different cloud patterns. Or add a second photo of a sky you shot yourself and choose "my second photo".
Matching the foreground
A new sunset sky above a scene lit by flat grey light looks fake. Match foreground to the sky tints the landscape towards the average colour of the new sky, like the light reflected from it. Use a little for blue skies and more for sunsets.
Checking the mask
Tick show the sky mask to see what was detected. If trees or roofs are included, lower sky detection or the lowest sky line; if parts of the sky are missing, raise them. The edge softness setting hides the transition along complicated edges like leaves.
Where it works best
Landscapes, seascapes, property exteriors, architecture and travel photos with a clear horizon. Skies that are pale, white or slightly blue are easiest to detect.
Honesty
For property listings, some portals and regulators expect photos to represent the property fairly. Replacing a grey sky is widely accepted, but do not hide features or change the building itself. For news and competitions, check the rules before replacing skies.
Limits
Very busy edges, such as dense bare branches against the sky, may keep a light halo. Skies with a strong colour that also appears in the foreground (blue cars, white walls at the top of the frame) can confuse the detection. Nothing is uploaded; all steps run in your browser.
Worked example
A 4000 x 3000 photo of a house under a white sky: sky detection 50 finds the sky in 31 percent of the picture; the blue with clouds sky, cloud variation 4 and foreground match 25 give a natural listing photo.
Quick facts
- Category: Images
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: OpenCV documentation, miscellaneous image transformations (flood fill)
Frequently asked questions
How does it find the sky?
It looks for bright, smooth, bluish or grey pixels connected to the top of the picture and grows the mask from there.
Can I use my own sky photo?
Yes. Add it as the second photo and choose my second photo as the new sky.
Why are my trees turning blue?
They were included in the sky mask. Lower sky detection or the lowest sky line and check the mask view.
What does matching the foreground do?
It tints the landscape towards the colour of the new sky so the light looks consistent.
Are the skies stock photos?
No. The built-in skies are generated in your browser, so there is nothing to license.
Is my photo uploaded?
No. Detection and replacement run locally.
