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
fix: enforce brand colors in infographic generation + enrichment prompts
Strict black bg + emerald green in DEFAULT_INSTRUCTIONS, enrichment prompt, and negativePrompt on all Imagen calls. Blocks purple/blue at every generation point.
"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."]
689
+
"imagePrompts": ["Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. [specific visual for this scene]. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable labels."]
690
690
}
691
691
],
692
692
"cta": "string - call to action"
@@ -697,7 +697,7 @@ Return ONLY a JSON object:
697
697
Requirements:
698
698
- 3-5 scenes totaling 60-90 seconds
699
699
- Use at least 2 different scene types
700
-
- 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."
700
+
- Each scene MUST include 2-5 imagePrompts following this exact template: "Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. [specific visual]. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable labels."
701
701
- imagePrompts should describe specific 2D infographic visuals that illustrate the narration content
702
702
- Do NOT include any script text, titles, or word overlays in the video. The narration audio carries all words.
703
703
- Think of each imagePrompt as a frame that will be shown for 3-5 seconds while the narration plays
Copy file name to clipboardExpand all lines: lib/services/gemini-infographics.ts
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -210,11 +210,11 @@ export function buildInfographicPrompt(
210
210
211
211
/** Default infographic instructions if Sanity contentConfig is not set up */
212
212
constDEFAULT_INSTRUCTIONS: string[]=[
213
-
'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.',
214
-
'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.',
215
-
'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.',
216
-
'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.',
217
-
'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.',
213
+
'Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. A high-level technical architecture overview showing system components and data flow. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable text labels suitable for mobile viewing at 360px width. No watermarks.',
214
+
'Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. A comparison chart showing key features and alternatives side by side. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable text labels suitable for mobile viewing at 360px width. No watermarks.',
215
+
'Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. A step-by-step workflow diagram showing the process from start to finish. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable text labels suitable for mobile viewing at 360px width. No watermarks.',
216
+
'Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. A timeline of key developments, milestones, and version releases. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable text labels suitable for mobile viewing at 360px width. No watermarks.',
217
+
'Infographic 2D architecture style. STRICTLY black (#000000) background only \u2014 no gradients, no purple, no blue. A pros and cons visual summary with clear icons and labels. Highlighted elements filled with bright green (#15b27b) only. White lines connecting components and white text annotations. Large, readable text labels suitable for mobile viewing at 360px width. No watermarks.',
0 commit comments