# Exposure Fusion (Blend Bracketed Photos) > Blend dark, normal and bright exposures into one photo with detail in shadows and highlights. Upload a ZIP of 2–5 bracketed photos of the same scene. The photos are aligned automatically and blended with Mertens exposure fusion: every pixel is weighted by contrast, saturation and good exposure, and a Laplacian pyramid hides the seams. No HDR file or tone mapping is needed, and the result is an ordinary 8-bit PNG. Photo Lab in Lumina runs the same engine on your device for larger photos. Part of usefulweb.app (https://usefulweb.app/). Part of [Lumina](https://lumina.usefulweb.app/) (ownerApp: lumina). Results are deterministic calculations from the inputs and the listed assumptions; the API returns exactly what the web page shows. ## Use it - Human interface: https://luminaexposurefusion.usefulweb.app/ (interactive tool at https://luminaexposurefusion.usefulweb.app/tool) - JSON API: POST https://luminaexposurefusion.usefulweb.app/api/v1/calculate with a JSON object of inputs (schema: https://luminaexposurefusion.usefulweb.app/api/v1/tool) - OpenAPI: https://luminaexposurefusion.usefulweb.app/openapi.json - MCP (Streamable HTTP): https://luminaexposurefusion.usefulweb.app/mcp - tool `lumina_exposure_fusion` ## Inputs - images (file, required): ZIP of 2–5 photos (PNG, JPEG or WebP; 12 megapixels together) - All photos must have the same size. ZIP order is kept; the middle photo is the alignment reference. - align (boolean): Align the photos (shift, rotation and scale) - crop (boolean): Crop to the area every photo covers - model (select): Alignment transform - contrast (number): Contrast weight (exponent) - 0 ignores local contrast; higher values prefer detailed areas. - saturation (number): Saturation weight (exponent) - 0 ignores colour saturation; higher values prefer vivid pixels. - exposure (number): Well-exposedness weight (exponent) - 0 ignores brightness; higher values prefer pixels near mid-grey. - sigma (number): Well-exposedness width (σ) - Smaller values accept a narrower band around mid-grey (0.5). ## Method - Weights (Mertens, Kautz & Van Reeth 2007): contrast C = |3 × 3 Laplacian| of the grey image, saturation S = standard deviation of R, G and B, well-exposedness E = exp(−Σ(v − 0.5)² / 2σ²) over the three channels; W = (C + 0.001)^ωc · (S + 0.001)^ωs · E^ωe. The 0.001 floor (not in the paper) keeps grey photos and flat areas from falling back to a plain average. - Blending: the weights are normalised per pixel, each photo is split into a Laplacian pyramid (5-tap binomial filter, Burt & Adelson 1983) and every level is multiplied by the Gaussian pyramid of its weight map. The summed pyramid is collapsed and clipped to 0–255. The pyramid stops about two levels before 1 pixel. - Alignment reuses Lumina Astro Lab's registration: Harris corners of a histogram-equalised grey image (at most 1600 pixels per side) take the place of stars in the triangle-matching RANSAC; each photo is matched with its neighbour towards the middle photo, refined by Lucas–Kanade intensity matching with gain and offset, and resampled bicubically. Pixels outside a photo get weight 0; the crop keeps the largest rectangle every photo covers. - Clipping columns report the share of pixels with a channel at 255 (highlights) or all channels at 0 (shadows) in every input and the result.