by adom
The hero-image lab with a human gate: `hero-studio pose <owner/slug>` opens the studio in front of the human, posed for their package, and blocks until they click Generate, producing the provenance-stamped 2000x1250 PNG the registry's hero gate requires. The image carries the title and artwork; the exported image also bakes the type pill (top right) and full wiki slug (bottom right); the page shows the hero bare, and only the homepage marquee overlays its own dynamic info. Every hero wears its P
master
Colby Knox
Full test suite in the page repo: npm test runs here (the published package carries only test/brand.mjs)
625499c
# Compare two parity runs pixel by pixel. Exit 1 on any difference.
import sys, os
from PIL import Image, ImageChops
a_dir, b_dir = sys.argv[1], sys.argv[2]
bad = 0
for f in sorted(os.listdir(a_dir)):
if not f.endswith('.png'):
continue
a = Image.open(os.path.join(a_dir, f)).convert('RGB')
b = Image.open(os.path.join(b_dir, f)).convert('RGB')
if a.size != b.size:
print(f, 'SIZE MISMATCH', a.size, b.size)
bad += 1
continue
bbox = ImageChops.difference(a, b).getbbox()
if bbox is None:
print(f, 'identical')
else:
print(f, 'DIFF bbox', bbox)
bad += 1
sys.exit(1 if bad else 0)