mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-08-02 19:31:19 -04:00
- Introduced `generate-showcase-portraits.ts` using the Gemini API for synthetic portrait generation. - Added `PORTRAITS` data structure for controlling persona appearances and scenes. - Implemented functionality to ensure consistent identity across generated photos. - Integrated `.env` API key support and optional modes for targeted regeneration (`--only`, `--force`, `--dry-run`). - Updated related documentation (`marketing-visuals.md` and `README.md`) with generation guidelines and usage instructions. - Seed script (`seed-showcase.ts`) enhanced to link generated photos with fictional profiles in the showcase dataset.
Showcase portraits
Portraits for the hand-authored seed personas in tests/e2e/utils/showcase-profiles.ts, used only for
marketing captures. See docs/marketing-visuals.md (W0b).
These are fully synthetic — generated with the Gemini image API, no real person depicted. That is deliberate: the personas are fictional, and attaching a real person's likeness to an invented biography would be a different and worse problem than the licensing one.
Regenerate with:
npx tsx scripts/generate-showcase-portraits.ts # fill in anything missing
npx tsx scripts/generate-showcase-portraits.ts --only priyaraman --force
- Naming:
<slug>-1.jpg…<slug>-N.jpg, where<slug>is the persona'sslugandNitsphotoCount.-1is the pinned photo, so it wants the face large in frame. - 896×1200 JPEG, q82, 100–250 KB each.
- Prompts live in the script, not here — edit
PORTRAITSthere and re-run with--force.
Missing files are not fatal: the seed falls back to default-avatar.png and warns.