Build a Chromatic alternative
Build a Chromatic alternative for comparing two screenshots with a pinned viewport and a reviewed baseline. Keep noisy renders from hiding real visual changes.
Build a Chromatic alternative around two screenshots of the same owned page. Pin the browser, viewport and fixture data. Compare the images, inspect the changed region, and explicitly approve a new baseline.
Use the Chromatic catalog prompt to explore the broader workflow. This first version is a local comparison tool for your own pages.
Build a Chromatic alternative with reviewed baselines
Save Snapshot(id, page_key, fixture_version, browser_version, width, height, image_path) and Review(candidate_id, baseline_id, decision). A baseline is a reviewed snapshot reference. Never replace it merely because a new build completed.
Two images with different dimensions should fail the comparison with an explanation. Resizing one to match the other can hide a layout regression. Show both dimensions and let the developer capture again with the correct configuration.
Remove avoidable noise before comparing
Use deterministic fixture data. Wait for fonts and the page’s explicit ready signal. Freeze animations in the test environment and mask a clock only when that clock is irrelevant to the comparison.
Masks need review too. A mask that covers the whole header also covers a broken navigation bar. Store mask coordinates with the fixture revision so an unrelated baseline cannot inherit them accidentally.
| Input | Decision | Evidence retained |
|---|---|---|
| Identical images | No change | Both snapshot ids |
| Different dimensions | Comparison refused | Expected and actual size |
| Changed pixels | Human review | Diff image and candidate |
| Approved candidate | New baseline | Reviewer and previous id |
Ask for the comparison before the dashboard
Build a screenshot comparison tool for allowlisted local image files.
Require equal dimensions. Generate a difference image and changed-pixel
count using an explicit per-channel threshold. Preserve both originals.
Allow a person to approve a candidate as the next baseline. Keep approval
history. Never fetch arbitrary URLs or execute uploaded project code.
Create one fixture where a button moves and another where only its text changes. Inspect both at normal size. A tiny changed-pixel ratio can still represent a broken checkout button, so use the ratio to organize review rather than approve changes automatically.
Keep review separate from capture
A screenshot proves what a render looked like. It cannot prove that a form submits correctly. Keep your behavioral checks alongside the images and link their results from the review screen.
The basic build compares files. The next scope adds repeatable browser capture and review history. A broadly supported service adds browser fleets, CI integrations, storage retention and support. Budget for those separately.
Read how to scope a SaaS clone for deciding which behavior matters first, and the Figma teardown for another case where pixels are only part of the system.