Skip to main content
Clone runs and design reviews live on measurements: screenshots, section rhythm, element geometry, text ink, font paint, reference diffs, copy extraction. eu-studio measure covers all of it; never hand-write Playwright or PIL scripts for these.

The seven modes

What each answers: Real sections output against a production build:
Review shots at wide widths, not just 1200: measure shots --page / --widths 1920,390. Wide screens expose nav and section alignment bugs that 1200 hides, and real users browse at 1512 to 2560.

pixeldiff: the photometric fidelity score

Anchors measure geometry; pixeldiff measures appearance: gradients, art, type ink.
Method: the page is captured as viewport slices at the reference’s width (full-page captures of tall pages deterministically drop bottom-of-page image paint, so it never diffs against one), scroll-settled and animation-finished, then each slice is compared against the corresponding crop of the reference. Comparison runs through python3 with PIL and numpy. The score is per-slice mean absolute luminance delta (0 to 255) plus the worst 50px-band mean, aggregated page-wide. Empirical interpretation bands:

Exclusion masks

--exclude y0-y1:why drops reference-coordinate row bands from the mean and the worst-band scan, reporting them separately, so the score reflects what the build was actually asked to match. The why label is mandatory context for whoever reads the score. This exists because of a real incident: an agent spent eight minutes chasing a score of 8 that was mathematically unreachable; the worst band (61.6) was a deviation the brief itself mandated, and the gate had no way to know. Mask the mandated deviations, then chase the score.

bench: scoring whole scenario runs

For repeatable evaluation of agent builds, eu-studio bench scores a scenario directory (reference render, anchors with presence floors and paint bands, a brief template) by running geometric verify plus photometric pixeldiff, and appends one record per run to runs.jsonl. bench compare tabulates runs. See eu-studio bench for the scenario layout.

Next

Recipe: clone a site

The measurement modes assembled into the faithful-rebuild flow.

Verify

The structural and interaction gates.