Skip to the tutorial
lil cactus

How to stitch photos into a panorama online

Advanced7 minutesUpdated

Quick answer

Open your overlapping photos in Lil Cactus and copy them into one document as layers with Layer then Duplicate Into Other Document. Select all the layers, choose Edit then Auto-Align to line them up, then Edit then Auto-Blend…, pick Panorama and click Blend. Finally, draw a rectangle inside the transparent edges with Marquee Select and choose Image then Crop to Selection.

A wide alpine valley panorama stitched from three photos: a long ridge of snowy peaks, pine forest, a turquoise river under a straight wooden footbridge and a small chapel on the right, with no visible joins
The three sample frames stitched, blended and cropped.
Time
7 minutes
Level
Advanced
You need
Two or more photos of a scene, taken from one spot, each overlapping the next by about a third
Works with
JPEG, PNG, HEIC, WebP, TIFF and PSD photos, and RAW files once developed
Open Lil Cactus

Sample files:Left frameMiddle frameRight frame

Free, no sign-up. Your photos stay on your computer.

A panorama is several photos of one scene, taken side by side, joined into a single wide picture. It shows more than your lens can fit in one shot, and because each frame keeps its full resolution, the result has far more pixels than any single photo.

Stitching takes three jobs. The photos are lined up so the same mountain lands on the same pixels (alignment), the overlaps are hidden with soft masks and their brightness evened out (blending), and the ragged edges are cropped away. Lil Cactus does the first two automatically and keeps each frame as its own layer, so you can still fix a join by hand.

Stitch a panorama in six steps

  1. Shoot or collect overlapping frames

    Stand in one place and turn, rather than walking along the view. Overlap each frame with the next by a third or more, keep the camera level, and lock the exposure and white balance if your camera allows it, so the frames match. Portrait orientation gives a taller panorama.

    To follow along, download the three sample frames from the top of this page. They were made to match frames taken turning about 20° between shots, with the camera tipped and tilted by about a degree each time, as handheld frames are. Their corners are slightly darker than the middle, as with most lenses, and their brightness differs by up to about half a stop (the middle frame is the brightest), as when the camera sets the exposure for each shot. Each overlaps the middle frame by about half its width.

    Three tall photos of an alpine valley side by side: the left one with the river bend and a stone wall, the middle one with the footbridge, the right one with the chapel, each repeating part of its neighbor, with the footbridge rail at a slightly different angle in each
    The sample frames, left to right. Each repeats part of its neighbor; the rail of the footbridge runs at a different angle in each.
  2. Put all the frames in one document

    Open the frames with File then Open… (Ctrl+O or ⌘O). Auto-Align lines them up whatever the order, but open the middle frame, valley-pano-2.jpg for the sample, first and on its own (files picked together open in the picker’s order): each frame opens in its own tab, the tab furthest left becomes the panorama, and its layer stays at the bottom of the stack. Seamless tones and colors in step 5 evens out the other frames’ brightness against this bottom layer.

    Click the second tab (the left frame) and choose Layer then Duplicate Into Other Document. Then do the same from the third tab (the right frame). The layer is copied into the first of the other open documents, the tab furthest left, so both copies end up in the middle frame’s document. Click that tab to continue there; you can close the other two.

    The Layer menu open with Duplicate Into Other Document highlighted, below Duplicate Layer
    Layer then Duplicate Into Other Document.
  3. Select all the layers

    The Layers panel of the first document now holds three layers: Background and two copies, all stacked over each other. Click the top layer, then hold Shift or ⇧ and click the bottom one, so all three are highlighted. Auto-Align and Auto-Blend work on the selected layers only.

    The Layers panel with three selected layers: Background (copy), Background (copy) and Background
    All three frames selected in the Layers panel.
  4. Line them up with Edit › Auto-Align

    Choose Edit then Auto-Align. Lil Cactus finds the features the frames share, works out how each frame has to move, tilt or skew to match its neighbors, and transforms the layers into place. The canvas grows to fit them all: on the sample it goes from 720 × 960 to about 1630 × 1217 px, and the side frames are tilted into a bow-tie shape.

    One frame stays where it is and the others are fitted to it. To choose that reference yourself, usually the middle frame, select it alone and click Lock position (the four-arrow button) in the Layers panel first; only one selected layer may be locked. Auto-Align fits frames with a perspective transform, so it can also tilt or skew a frame (keystone) when the camera turned between shots.

    The Edit menu open with Auto-Align and Auto-Blend ringed near the bottom
    Edit then Auto-Align and Edit then Auto-Blend…, ringed.
  5. Hide the joins with Edit › Auto-Blend…

    With the three layers still selected, choose Edit then Auto-Blend… Pick Panorama, leave Seamless tones and colors ticked so the frames’ brightness is evened out, and click Blend. With more frames, each one is matched through the frames it overlaps.

    Each layer gets a mask that shows it only where it is the best source, with the joins placed along the overlaps. The layers stay separate, so you can paint on a mask to move a join, for example away from a person who moved between frames.

    The Auto-Blend Layers dialog: Panorama selected and ringed, Seamless tones and colors ticked, and the Blend button
    Auto-Blend set for the sample panorama: Panorama and Seamless tones and colors, ringed.
    1. Blend
    The Layers panel after Auto-Blend: each of the three layers has a black mask with a white area where that frame is shown
    Each frame now has a mask: white where it shows, black where a neighbor takes over.
  6. Crop the edges and save

    Choose Marquee Select (M) in the toolbar and drag a rectangle that stays inside the photo everywhere, clear of the transparent wedges. Then choose Image then Crop to Selection. The largest rectangle that fits is about 1540 × 965 px.

    Check the joins at full size with View then Actual Size (100%) (Ctrl+1 or ⌘1; some browsers use that shortcut to switch tabs): on the sample they can’t be found. Export with File then Export then JPEG…, or keep the layers and masks with File then Save As then Lil Cactus Project… (Ctrl+Shift+S or ⇧⌘S). File then Save on this document writes the flattened panorama back into the middle frame’s JPEG, valley-pano-2.jpg for the sample; the first time, the Save Image dialog asks for its quality.

    The blended panorama in a bow-tie shape on the canvas, with transparent wedges along the top and bottom edges and a dashed selection rectangle just inside them
    The blended panorama, with no joins in the sky, forest or water. The selection stays inside the photo, clear of the transparent wedges where the turned frames don’t reach.
    Two enlarged details centered on the joins of the finished panorama: the footbridge rail running straight and continuous across the left join, and calm rippled water across the right join, with no visible line or change in brightness
    Both joins in the finished panorama, enlarged, each join down the middle of its panel: the footbridge rail at the left join, water at the right.

Fix common problems

Duplicate Into Other Document put a frame in the wrong document

It always copies into the tab furthest left among the other documents. Click the tab that received the copy and undo there, then close the other tabs to the left of the panorama’s tab, choosing Don’t Save (reopen any frame you still need to copy), and copy again.

Auto-Align or Auto-Blend is grayed out

Select at least two visible layers; text, shape and Smart Object layers must be rasterized first. Auto-Blend also refuses a layer locked with the padlock button (Lock layer) in the Layers panel; Lock position is fine.

A visible line or a doubled object along a join

Something moved between frames, or the overlap was too small. Select the layer’s mask and paint white or black with a soft brush to move the join to a quieter place.

What to do next

Coming from another editor

Photoshop
File › Automate › Photomerge…, or Edit › Auto-Align Layers… followed by Edit › Auto-Blend Layers… In Lil Cactus the same job is Edit › Auto-Align and Edit › Auto-Blend…

Panorama stitching: questions and answers

How much should panorama photos overlap?

About a third of each frame, for Lil Cactus as for most stitching software. More overlap gives Auto-Align more shared features to match; with little overlap it may fail to align a frame.

Can I stitch a panorama from handheld photos in Lil Cactus?

Yes. Lil Cactus’s Auto-Align fits each frame with a perspective transform, so it corrects the turn, tip and tilt between handheld frames, as with the samples. Turn on the spot, keep the camera level, and crop a little more afterward.

How many photos can I stitch at once?

In Lil Cactus, Auto-Align needs at least two layers and works on all the layers you select. Very wide panoramas need more memory, because the canvas grows to hold every frame.

Can I make a vertical panorama?

Yes. Shoot the frames one above the other with the same overlap, and Lil Cactus aligns and blends them the same way; the canvas then grows in height.

Are my photos uploaded when I stitch a panorama in Lil Cactus?

No. Aligning and blending run in your browser on your own device, and the photos are never sent to a server. Optional statistics never include images; see the privacy policy.