Clone any website into a pixel-accurate Next.js app with AI — Playwright-measured extraction (no eyeballing), spec-gated parallel builder agents, and scored pixel-diff QA at phone/tablet/desktop. Works with Claude Code, Cursor, Copilot + 9 more.
JavaScript aiai-agentsclaudeclaude-codecursornextjspixel-perfectplaywrightscreenshot-to-codetailwindcssweb-cloningwebsite-cloner
fix(shots): skip marginal review downscales — resampling grows small PNGs
Mahanaicoachf7c57736e590
diff --git a/scripts/lib.mjs b/scripts/lib.mjsindex 73d1686..0bad357 100644--- a/scripts/lib.mjs+++ b/scripts/lib.mjs@@ -491,7 +491,9 @@ export function writeReviewPng(src, destPath) {} catch {return false; // unreadable source — review copy is best-effort}- if (!img?.data || !img.width || img.width <= REVIEW_WIDTH) return false;+ // Skip marginal downscales (e.g. ipad's 768 -> 640): resampling breaks PNG+ // run-length compressibility, so a small shrink often GROWS the file.+ if (!img?.data || !img.width || img.width <= REVIEW_WIDTH * 1.25) return false;const scale = REVIEW_WIDTH / img.width;const w = REVIEW_WIDTH;const h = Math.max(1, Math.round(img.height * scale));