Skip to content
Browser engineering

Capturing the Whole Page Without Sending It to the Cloud

1Snap captures a whole web page as one PNG inside Chrome, with no upload. The hard part was not taking the frames. It was leaving the page exactly as the user had it.

2 min read0 comments
Website

Chrome only captures what is visible

Chrome's standard screenshot flow captures the visible viewport. Many full-page tools solve that by adding heavy editors, accounts or cloud upload. I wanted one complete, annotatable image without sending the page anywhere.

Because Chrome can only capture the active visible tab, 1Snap has to scroll the page and record frame after frame while the tab stays active, then stitch them together.

Pages fight back while you capture them

Real pages do not hold still. Sticky headers appear in every frame and would repeat down the final image. Lazy images have not loaded yet. Animations make adjacent frames disagree. And when capture ends, the user's page has been scrolled somewhere else.

So before capturing, 1Snap measures the document, plans the scroll positions, pauses animations, handles fixed and sticky elements and waits for visible images and fonts. On success or failure, it restores the original scroll position and every temporary presentation change.

If you touch the user's page, leave it exactly as you found it.

Stitching and editing stay in the browser

Frames and annotations are stored in IndexedDB and stitched on a local canvas. There is no account and no remote image processing.

Annotations are vector geometry kept separate from the screenshot until export. Users can select, move, resize, undo, redo or clear Marker, Highlight and Border marks, and only the final export composes them into the PNG at original resolution.

Explicit limits instead of crashing the tab

Very long pages can exhaust browser memory. Captures are bounded to 50 frames, 16,000 by 32,000 output pixels and 120 million pixels in total. Larger captures are proportionally downscaled or stopped instead of running out of memory.

1Snap v0.1.1 shipped as a Manifest V3 Chrome ZIP with a published SHA-256 checksum, plus a product website and unit and UI test coverage.

Working through a similar challenge?

Share your context, constraints, and timeline to start a focused conversation.