File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 * them into public/conference-kit/conference-kit.zip. Expects a dev/prod server to
44 * already be running on $URL (default http://localhost:3000) — invoke after
55 * `pnpm dev` is up, or against a `pnpm start` instance. Override SCALE for
6- * print-grade output (e.g. SCALE=6 → 3600×8472 ≈ 100 dpi at 850×2000 mm).
6+ * print-grade output. SCALE=11 is the practical maximum: headless Chromium's
7+ * compositor caps GPU textures at 16 384 px, and the banner height at SCALE=12
8+ * (1412×12=16 944 px) exceeds that, causing partial renders. SCALE=11 gives
9+ * 6 600×15 532 px ≈ 197 dpi at 850×2000 mm, which large-format print shops
10+ * accept without complaint.
711 *
812 * Only the zip is written to public/. Loose PNGs land in a tmp dir and are
913 * cleaned up so the served directory stays minimal.
@@ -21,7 +25,7 @@ const exec = promisify(execFile)
2125const URL = process . env . URL ?? "http://localhost:3000"
2226const PAGE = `${ URL } /conf/conference-kit/`
2327const PUBLIC_DIR = path . resolve ( process . cwd ( ) , "public/conference-kit" )
24- const SCALE = Number ( process . env . SCALE ?? 4 )
28+ const SCALE = Number ( process . env . SCALE ?? 11 )
2529
2630type ColorScheme = "light" | "dark"
2731
You can’t perform that action at this time.
0 commit comments