← Commit history

build_hero.py: trim 12px of capture residue off each side of the chrome titlebar strip (purple wallpaper sliver left, grey border sliver right) that John spotted stretched down the chrome band

John Lauer ·6fabb52ac5 ·2mo ago ·parent 06e121f
1 file changed +4−1
dev-skills/pup-hero-image/build_hero.py+4−1
@@ -51,7 +51,10 @@ win_h = VH - TB  # ── window chrome strip (real captured Chrome titlebar) ────────────────────── chrome = Image.open(A('win_slot3.png')).convert('RGB'); CH_SRC = 125-chrome = chrome.crop((0, 0, chrome.width, CH_SRC)).resize((vw, int(CH_SRC*vw/1116)), Image.LANCZOS)+# the capture carries ~12px of desktop residue on EACH side (purple wallpaper sliver left, grey+# border sliver right) — John spotted it stretched down the chrome band (2026-08-09). Trim it.+EDGE_TRIM = 12+chrome = chrome.crop((EDGE_TRIM, 0, chrome.width-EDGE_TRIM, CH_SRC)).resize((vw, int(CH_SRC*vw/1116)), Image.LANCZOS) CH = chrome.height  # ── page content, cover-fit, bottom 10% fade ─────────────────────────────────