You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: dual-orientation infographic generation from per-scene prompts
Task C: Infographic generation scale-up for dual orientations\n\n- New generateFromScenePrompts() generates both 16:9 and 9:16 for each prompt\n- check-research reads imagePrompts from script scenes, generates both orientations\n- Uploads to Sanity: infographicsHorizontal + infographicsVertical at doc root\n- Distributes CDN URLs back to script.scenes[].infographicUrls for Remotion\n- Rate limiting: 2s pause every 5 prompts to avoid Imagen throttling\n- DEFAULT_INSTRUCTIONS updated to Alex's brand style (black bg, #15b27b green)\n- Enrichment prompt updated with imagePrompts requirements\n- Backward compat: still writes to infographics field + researchData
"imagePrompts": ["Infographic 2D architecture style, black background. [specific visual for this scene]. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations."]
518
605
}
519
606
],
520
607
"cta": "string - call to action"
@@ -525,6 +612,10 @@ Return ONLY a JSON object:
525
612
Requirements:
526
613
- 3-5 scenes totaling 60-90 seconds
527
614
- Use at least 2 different scene types
615
+
- Each scene MUST include 2-5 imagePrompts following this exact template: "Infographic 2D architecture style, black background. [specific visual]. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations."
616
+
- imagePrompts should describe specific 2D infographic visuals that illustrate the narration content
617
+
- Do NOT include any script text, titles, or word overlays in the video. The narration audio carries all words.
618
+
- Think of each imagePrompt as a frame that will be shown for 3-5 seconds while the narration plays
528
619
- Include REAL code snippets from the research where applicable
529
620
- The qualityScore should be your honest self-assessment (0-100)
530
621
- Return ONLY the JSON object, no markdown or extra text`;
/** Override the Imagen model (defaults to pipeline_config.infographicModel or "imagen-4-fast"). */
@@ -205,11 +212,11 @@ export function buildInfographicPrompt(
205
212
206
213
/** Default infographic instructions if Sanity contentConfig is not set up */
207
214
constDEFAULT_INSTRUCTIONS: string[]=[
208
-
'Create a technical architecture sketch using white "hand-drawn" ink lines on a deep navy blue background (#003366). Use rough-sketched server and database icons with visible "marker" strokes, handwritten labels in a casual font, and a subtle grid pattern. Style: blueprint meets whiteboard doodle.',
209
-
'Create a comparison chart on a vibrant blue background (#004080) with hand-inked white headers and uneven, sketchy borders. Use white cross-hatching and doodle-style checkmarks to highlight feature differences. Include hand-drawn arrows and annotations. Style: technical chalkboard.',
210
-
'Create a step-by-step workflow "blueprint" on a dark blue canvas (#003366). Use hand-drawn white arrows connecting rough-sketched boxes, simple "stick-figure" style worker avatars, and handwritten-style labels with a slight chalk texture. Add a subtle grid background. Style: engineering whiteboard.',
211
-
'Create a hand-sketched timeline using a jagged white line on a royal blue background. Represent milestones with simple, iconic white doodles that look like they were quickly sketched during a brainstorming session. Use handwritten dates and labels. Style: notebook sketch on blue paper.',
212
-
'Create a pros and cons summary with a "lo-fi" aesthetic. Use hand-drawn white thumbs-up/down icons and rough-sketched containers on a deep blue background (#003366). Add hand-drawn underlines and circled keywords. Style: high-contrast ink-on-blueprint with cyan accent highlights.',
215
+
'Infographic 2D architecture style, black background. A high-level technical architecture overview showing system components and data flow. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations.',
216
+
'Infographic 2D architecture style, black background. A comparison chart showing key features and alternatives side by side. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations.',
217
+
'Infographic 2D architecture style, black background. A step-by-step workflow diagram showing the process from start to finish. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations.',
218
+
'Infographic 2D architecture style, black background. A timeline of key developments, milestones, and version releases. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations.',
219
+
'Infographic 2D architecture style, black background. A pros and cons visual summary with clear icons and labels. Highlighted elements filled with #15b27b. White lines connecting components and white text annotations.',
0 commit comments