Blog

How Scrolling Screenshots Stitch Frames, and Why They Sometimes Fail

Written by InSnap · Published · scrolling screenshot, long screenshot, image stitching, algorithm

How Scrolling Screenshots Stitch Frames, and Why They Sometimes Fail

A scrolling screenshot grabs frames while you scroll and works out how far the page moved. Here is how InSnap matches frames, handles sticky headers and why it drops a frame.

A scrolling screenshot is a stack of ordinary screenshots taken while you scroll. The hard part is not capturing them; it is working out how far the page moved between two frames, because every wrong guess shows up as a duplicated line or a visible seam. InSnap's rule is simple: if it cannot be sure where a frame belongs, it drops that frame instead of guessing.

What happens when you start

Draw a selection and choose Long screenshot. The overlay becomes click-through, so your mouse wheel scrolls the real page underneath. InSnap grabs frames of the selected area as the page moves, leaving its own windows out of the picture, and a live preview grows on the side of the selection.

When you are done, the toolbar offers save, pin, copy, edit and cancel. Esc cancels the whole capture.

Choosing the area to capture

Step 1: find where the new frame lands

For each new frame, InSnap needs one number: the row in the growing image where the frame's first row belongs.

It cuts three bands from the frame, each 128 rows tall, and looks for where each band best matches the image built so far. Several bands vote, so a single sticky element cannot decide alone. A match is accepted only when the best position is clearly better than the runner-up. If a band has too little texture, such as a blank area, it abstains.

Step 2: ignore what does not scroll

Real pages have parts that stay put: sticky headers, floating buttons, scrollbars. They would confuse a single global match.

So the frame is also split into narrow bands, 48 rows each, and every band estimates its own movement. The most common movement, weighted by confidence, wins. Bands are then sorted:

  • Reliable: moves with the page and is written.
  • Flat: too plain to measure, written at the agreed movement.
  • Outlier: moves differently from the rest, such as a sticky header; not written.
  • Dynamic: cannot be matched at all, such as an animation or video; not written.

Step 3: write only rows that are new

Duplicates are avoided by construction. InSnap writes only the rows of the image that have not been written yet, rather than computing a count of new rows and hoping it is right. Small backward jumps while scrolling down are treated as jitter, and the image only trims its end when two frames in a row agree that the page scrolled back.

The result is made of whole pixel rows taken from the frames, so text stays as sharp as in a normal screenshot.

Why it sometimes declines a frame

What happenedWhy the frame is droppedWhat helps
Scrolled very fastLess than about 100 rows overlap the image so far, too little to match safelyScroll in smaller steps
Page has repeated contentTwo positions match equally well, so the answer is ambiguousSelect an area that includes distinctive content
Video or animation in the areaThose bands cannot be matchedSelect a different area or pause the video
A banner covers most of the areaMost bands are outliersClose the banner or select below it

A dropped frame is not an error. The next frame usually overlaps enough and the page continues without a seam.

Measured speed

The stitching core is plain C++ with a small regression suite of 20 test cases. On our development Mac, the optimised build handles a full 3120 × 2080 selection in about 7 ms to start and about 11 ms per frame at worst. In an end-to-end test against a synthetic page with known content, the stitched image differed from the known page by an average of 3 on the 0 to 255 colour scale, after allowing a shift of up to three rows.

Joining images you already have

A scrolling capture is for one continuous page. If you already have separate screenshots, the image editor has a Stitch tool that lays them out and joins them by hand. It is a different feature with a different job.

Joining separate images in the editor

What needs Pro

Long screenshot is a Pro feature, part of a one-time purchase of $9 for up to three devices. The first Pro feature you open offers a 7-day trial that needs no account.

FAQ

Why does my scrolling screenshot have a gap or missing section?

The most common cause is scrolling too fast, so consecutive frames did not overlap enough to match. Scroll in smaller steps and keep the selection on content that stays visible.

Why does a sticky header appear only once?

Bands that do not move with the page are treated as outliers and are not written again. The header from the first frame stays at the top and is not repeated.

Does a scrolling screenshot work on any app?

It works on anything you can scroll inside the selected area. Results are best on pages with distinctive content; long runs of identical rows are the hardest to match.

Is the stitching done online?

No. The matching runs on your computer. Nothing is uploaded unless you choose to share the result.

Your next screenshot is one hotkey away.

macOS 14.4+ (Apple Silicon & Intel) · Windows 10+ (64-bit)