Skip to content

Commit f64a733

Browse files
committed
Add png for nyc, higher resolution exports
1 parent c741cd4 commit f64a733

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

16.1 MB
Binary file not shown.

scripts/render-conference-kit-banners.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
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)
2125
const URL = process.env.URL ?? "http://localhost:3000"
2226
const PAGE = `${URL}/conf/conference-kit/`
2327
const 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

2630
type ColorScheme = "light" | "dark"
2731

0 commit comments

Comments
 (0)