Skip to content

keryx portrait

Stylise reference photo(s) into the risograph avatar via the image provider (Gemini image-to-image) — a port of gen-portrait.py. Resolves a portrait theme for the prompt.

keryx portrait --ref photo1.jpg [--ref photo2.jpg ...] [--theme <kw>] [--n N] [--out portrait]
Flag Meaning Default
--ref a reference photo (repeatable) — (≥1 required)
--theme portrait theme (the avatar prompt) configured portrait default
--n number of variants 1
--out output path prefix → <out>-<i>.png portrait

Credential: GEMINI_API_KEY (env). Used for the blog logo / social avatar, not the per-post pipeline. Reference photos are sent as image-to-image conditioning; their MIME type is detected from content.

keryx portrait --ref me1.jpg --ref me2.jpg --n 3

Provider-selected via providers.image — see Providers.