Portrait Generator
Drop in a neutral portrait, generate 7 emotion variants, create a tile sheet for RPG style dialog portraits.

Demo

Local app
Drag and drop
8 emotions
576x288 PNG output

Quick start

Requirements: Node 20 or newer.

  1. Clone the repo, or downoad the latest release zip
  2. Install dependencies
  3. Add your OpenAI API key in a local .env file
  4. Run the app, open it in your browser
# from the project folder
npm install
# create .env (copy from the example)
# Windows PowerShell
copy .env.example .env

# macOS / Linux
cp .env.example .env
# then edit .env and set:
OPENAI_API_KEY=your_key_here
PORT=5177
npm start
# then open:
http://localhost:5177

Note, your API key stays on your computer, this project does not include any API keys.

What gets generated

From one neutral portrait, the tool creates a single PNG sheet with these emotions: