Image Stacking and Long Exposure

Combine many photos of the same scene: create star trails, simulate long exposures, remove passing people or cut noise in night shots.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add the frames

    Choose all photos of the series.

  2. 2
    Choose a mode

    Mean, median, sigma-clipped, maximum or minimum.

  3. 3
    Decide on alignment

    On for hand-held, off for tripod or star trails.

  4. 4
    Check the preview

    Look for ghosts or gaps.

  5. 5
    Adjust clipping

    For sigma mode, change the clip value.

  6. 6
    Export

    Download the stacked image at full size.

About this tool

Stacking combines several photos of the same scene pixel by pixel. Depending on how the pixels are combined, the same idea produces very different results: the average of many frames reduces noise and smooths moving water like a long exposure; the median keeps what stays still and removes what moves, such as tourists; the maximum keeps the brightest value, so stars draw trails across the sky. Astronomers have used stacking for decades, and this tool brings the main methods to the browser.

Stacking modes

Mean adds all frames and divides by their number. Random noise falls roughly with the square root of the number of frames, so 16 frames have about a quarter of the noise of one. Moving water and clouds blur into a smooth long-exposure look.

Median takes the middle value for each pixel. A person who walks through the scene appears in only a few frames, so the median ignores them. With five or more frames, busy landmarks can appear empty.

Sigma-clipped mean first rejects values far from the average (more than the chosen number of standard deviations), then averages the rest. It removes aircraft, satellites and hot pixels while still reducing noise.

Maximum keeps the brightest value, which turns a series of night sky frames into star trails and car headlights into light trails. Minimum keeps the darkest value, useful for removing bright moving objects.

Alignment

Tripod shots need no alignment. For hand-held series, auto-align shifts each frame to match the first one using a robust bitmap comparison. It corrects small shifts, not rotation. For star trails, keep alignment off, because the stars are supposed to move.

Shooting tips

Use a tripod and the same exposure for every frame. For star trails, take 30-second exposures continuously for 30 minutes or more. For tourist removal, take a frame every few seconds for a minute or two. For silky water in daylight, a series of 20 to 50 frames replaces a neutral density filter.

Workflow

Load all frames, choose a mode, check the preview, and export. Frames must have the same size; different sizes are resized to the first one.

Limits

The browser holds all frames in memory, so very long series of large photos may be too heavy for phones; use fewer or smaller frames. The result is an 8-bit image, not a calibrated astronomical stack with darks and flats. Nothing is uploaded.

Worked example

Forty 30-second exposures of a night sky (each 6000 x 4000 pixels, reduced to 4000 x 2667 on load) are stacked with maximum mode into one star trail image; the same frames with sigma-clipped mean give a clean, low-noise landscape.

Quick facts

Frequently asked questions

How many photos do I need?

For noise reduction 8 to 16, for removing people 5 to 20, for star trails as many as possible (often 30 to 200).

Why are people still visible with median?

They stood still in more than half of the frames. Take frames over a longer period or add more of them.

Should I align star trail frames?

No. The stars move between frames, and that movement is what draws the trails.

What does sigma clipping remove?

Values far from the average, such as aircraft lights, satellites and hot pixels.

Can I stack phone photos?

Yes, if they were taken from a stable position with the same settings.

Are my photos uploaded?

No. Stacking runs on your device.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages