Generate a 1080x1350px LinkedIn infographic using fal.ai nano-banana-pro with brand colors and reference image style
Creates a portrait infographic as .pdf and .png using ReportLab or canvas-design approach, applying Naeem's brand identity.
brand.json — colors, fonts, dimensionsoutput/infographics/YYYY-MM-DD-[topic-slug].png (generated by fal.ai)output/infographics/YYYY-MM-DD-[topic-slug]-content.json (content used)templates/infographic-content.jsonoutput/infographics/YYYY-MM-DD-[slug]-content.jsonpython3 scripts/generate-infographic.py \
--content output/infographics/YYYY-MM-DD-[slug]-content.json \
--output output/infographics/YYYY-MM-DD-[slug].png \
--reference reference/infographic-ref-1.png \
--ref-index 0
Use scripts/generate-infographic.py which calls fal.ai nano-banana-pro. Do NOT use ReportLab or canvas alone — results are flat and template-like.
Setup required (once):
cp .env.example .env # then add FAL_AI_API_KEY
uv pip install Pillow python-dotenv
Add reference images for style consistency:
reference/infographic-ref-1.png — your preferred infographic stylereference/infographic-ref-2.png — alternate layoutreference/infographic-ref-3.png — alternate layoutRotate reference images across posts so layouts stay diverse.
brand.json┌─────────────────────────────────┐
│ HEADER BAND (#0A1628) │ Bold topic title (Georgia, large)
│ Topic title + subtitle │ Subtitle in #00D4AA
├─────────────────────────────────┤
│ POINT 1: [Icon] Header + text │ Icon in colored circle
│ POINT 2: text + Header [Icon] │ Mirror layout (alternate sides)
│ POINT 3: [Icon] Header + text │
│ │
│ ┌── KEY STAT CALLOUT ────────┐ │ #1E3A5F bg, #00D4AA border
│ │ Big number or bold fact │ │ Large typography, high contrast
│ └────────────────────────────┘ │
│ │
│ POINT 4: text + Header [Icon] │
│ POINT 5: [Icon] Header + text │ (if 5-6 points)
├─────────────────────────────────┤
│ FOOTER BAND (#0A1628) │ Naeem | AI/ML Engineer
│ "Follow for more AI content" │
└─────────────────────────────────┘
Background: #0A1628 (dark navy throughout)
Section headers: #00D4AA (teal)
Body text: #F8F9FA (light)
Callout box: #1E3A5F bg + 3px #00D4AA border
Icon circles: #00D4AA or #FF6B35
Header font: Georgia
Body font: Calibri