Generates OGP (Open Graph Protocol) images for gitlogue using satori.
- Node.js 18+
- System fonts (DejaVu Sans)
npm install
npm run generateThis will generate docs/assets/ogp.png (1200x630px) suitable for GitHub's social preview.
- Loads
screenshot-editor.pngas the background - Applies a dark overlay for text legibility
- Renders text using satori (HTML/CSS to SVG)
- Converts SVG to PNG using @resvg/resvg-js
Edit generate.js to customize:
- Title and description text
- Colors and styling
- Font sizes
- Background image