studio-lumiere-cli 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,6 +36,8 @@ export interface Resolution {
36
36
  }
37
37
  export interface GenerationState {
38
38
  uploadedImages: File[];
39
+ uploadMode: 'stacking' | 'multi_angle' | 'multi_item_single';
40
+ campaignMode: boolean;
39
41
  selectedTemplate: string | null;
40
42
  selectedDetailId: string | null;
41
43
  selectedSecondaryDetailId: string | null;
@@ -46,12 +48,21 @@ export interface GenerationState {
46
48
  selectedSkinTone: string | null;
47
49
  selectedHairColor: string | null;
48
50
  selectedBackground: string | null;
51
+ selectedBackgroundSource: 'studio' | 'user';
52
+ selectedBackgroundImageId: string | null;
49
53
  selectedBackgroundType: string | null;
50
54
  selectedVibe: string | null;
51
55
  selectedPhotographyStyle: string | null;
56
+ selectedPaletteSource: 'studio' | 'user';
57
+ selectedPaletteColorId: string | null;
52
58
  selectedResolution: string | null;
53
59
  imageCount: number;
54
60
  selectedOccasion: string | undefined;
61
+ editorialMuseCloseUp: boolean;
62
+ editorialMuseUltraCloseUp: boolean;
63
+ flatlayCloseUp: boolean;
64
+ flatlayUltraCloseUp: boolean;
65
+ guidelineItemOverrides: Record<string, boolean>;
55
66
  generatedImages: {
56
67
  id: string;
57
68
  url: string;
@@ -63,6 +74,36 @@ export interface GenerationState {
63
74
  error: string | null;
64
75
  selectedMuseId: string | null;
65
76
  }
77
+ export interface UserBackground {
78
+ id: string;
79
+ user_id: string;
80
+ name: string | null;
81
+ storage_path: string;
82
+ created_at: string;
83
+ }
84
+ export interface UserBackgroundWithUrl extends UserBackground {
85
+ displayUrl?: string | null;
86
+ downloadUrl?: string | null;
87
+ }
88
+ export interface UserGuidelineItem {
89
+ id: string;
90
+ user_id: string;
91
+ text: string;
92
+ sort_order: number;
93
+ storage_path: string | null;
94
+ created_at: string;
95
+ }
96
+ export interface UserGuidelineItemWithUrl extends UserGuidelineItem {
97
+ displayUrl?: string | null;
98
+ downloadUrl?: string | null;
99
+ }
100
+ export interface UserPaletteColor {
101
+ id: string;
102
+ user_id: string;
103
+ name: string | null;
104
+ hex: string;
105
+ created_at: string;
106
+ }
66
107
  export interface Muse {
67
108
  id: string;
68
109
  user_id: string;
package/dist/types.d.ts CHANGED
@@ -25,6 +25,7 @@ export interface GenerationRequest {
25
25
  styleHint?: string;
26
26
  museId?: string;
27
27
  museImagePaths?: string[];
28
+ uploadMode?: "stacking" | "multi_angle" | "multi_item_single";
28
29
  outputDir?: string;
29
30
  enhancePrompt?: boolean;
30
31
  }
@@ -109,6 +110,19 @@ export interface GridOptions {
109
110
  tileWidth?: number;
110
111
  tileHeight?: number;
111
112
  }
113
+ export type BeforeAfterLayout = "horizontal" | "vertical" | "diagonal" | "inset";
114
+ export type BeforeAfterOrder = "before-first" | "after-first";
115
+ export type BeforeAfterDiagonalDirection = "tl-br" | "tr-bl";
116
+ export type BeforeAfterInsetPosition = "top-left" | "top-right" | "bottom-left" | "bottom-right";
117
+ export interface BeforeAfterOptions {
118
+ layout: BeforeAfterLayout;
119
+ order: BeforeAfterOrder;
120
+ feather?: number;
121
+ diagonalDirection?: BeforeAfterDiagonalDirection;
122
+ beforeScale?: number;
123
+ beforeInsetScale?: number;
124
+ beforeInsetPosition?: BeforeAfterInsetPosition;
125
+ }
112
126
  export interface LumiereConfig {
113
127
  apiKey: string;
114
128
  outputDir: string;
package/package.json CHANGED
@@ -1,33 +1,30 @@
1
- {
2
- "name": "studio-lumiere-cli",
3
- "version": "0.1.7",
4
- "description": "Local SDK + CLI for Studio Lumiere image and video generation",
5
- "type": "module",
6
- "bin": {
7
- "lumiere": "dist/cli.js"
8
- },
9
- "files": [
10
- "dist",
11
- "scripts"
12
- ],
13
- "scripts": {
14
- "sync": "node scripts/sync-studio.mjs",
15
- "build": "npm run sync && tsc",
16
- "prepublishOnly": "npm run build",
17
- "dev": "npm run sync && tsx src/cli.ts",
18
- "generate": "tsx examples/generate.ts",
19
- "muse": "tsx examples/muse.ts",
20
- "video": "tsx examples/video.ts"
21
- },
22
- "dependencies": {
23
- "@google/genai": "^1.0.0",
24
- "commander": "^12.0.0",
25
- "dotenv": "^16.4.5",
26
- "sharp": "^0.34.5"
27
- },
28
- "devDependencies": {
29
- "@types/node": "^22.13.0",
30
- "tsx": "^4.19.2",
31
- "typescript": "^5.7.3"
32
- }
33
- }
1
+ {
2
+ "name": "studio-lumiere-cli",
3
+ "version": "0.1.8",
4
+ "description": "Local SDK + CLI for Studio Lumiere image and video generation",
5
+ "type": "module",
6
+ "bin": {
7
+ "lumiere": "dist/cli.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "scripts"
12
+ ],
13
+ "scripts": {
14
+ "sync": "node scripts/sync-studio.mjs",
15
+ "build": "npm run sync && tsc",
16
+ "prepublishOnly": "npm run build",
17
+ "dev": "npm run sync && tsx src/cli.ts"
18
+ },
19
+ "dependencies": {
20
+ "@google/genai": "^1.34.0",
21
+ "commander": "^12.0.0",
22
+ "dotenv": "^16.4.5",
23
+ "sharp": "^0.34.5"
24
+ },
25
+ "devDependencies": {
26
+ "@types/node": "^22.14.0",
27
+ "tsx": "^4.19.2",
28
+ "typescript": "^5.8.2"
29
+ }
30
+ }
@@ -1,16 +1,16 @@
1
- import { cpSync, mkdirSync } from "node:fs";
2
- import { resolve, dirname } from "node:path";
3
- import { fileURLToPath } from "node:url";
4
-
5
- const __dirname = dirname(fileURLToPath(import.meta.url));
6
- const studioRoot = resolve(__dirname, "../../studio-lumiere");
7
- const destDir = resolve(__dirname, "../src/studio");
8
-
9
- mkdirSync(destDir, { recursive: true });
10
-
11
- const files = ["types.ts", "constants.ts", "promptBuilder.ts"];
12
- for (const file of files) {
13
- cpSync(resolve(studioRoot, file), resolve(destDir, file));
14
- console.log(` synced ${file}`);
15
- }
16
- console.log("studio sync complete");
1
+ import { cpSync, mkdirSync } from "node:fs";
2
+ import { resolve, dirname } from "node:path";
3
+ import { fileURLToPath } from "node:url";
4
+
5
+ const __dirname = dirname(fileURLToPath(import.meta.url));
6
+ const studioRoot = resolve(__dirname, "../..");
7
+ const destDir = resolve(__dirname, "../src/studio");
8
+
9
+ mkdirSync(destDir, { recursive: true });
10
+
11
+ const files = ["types.ts", "constants.ts", "promptBuilder.ts"];
12
+ for (const file of files) {
13
+ cpSync(resolve(studioRoot, file), resolve(destDir, file));
14
+ console.log(` synced ${file}`);
15
+ }
16
+ console.log("studio sync complete");
@@ -1,4 +0,0 @@
1
- import { Template, Option } from "../types.js";
2
- import { OccasionTheme } from "../config/constants.js";
3
- export declare const buildLLMPrompt: (template: Template, detail: Option | undefined, secondaryDetail: Option | undefined, tertiaryDetail: Option | undefined, ethnicity: Option | undefined, skinTone: Option | undefined, hairColor: Option | undefined, background: Option | undefined, backgroundType: Option | undefined, vibe: Option | undefined, imageCount: number, occasion: OccasionTheme | undefined, isVariation?: boolean, styleHint?: string) => string;
4
- export declare const buildSystemInstruction: (template: Template, ethnicity: Option | undefined) => string;
@@ -1,322 +0,0 @@
1
- import { ETHNICITY_REGIONS, getRandomLuxuryInterior } from "../config/constants.js";
2
- export const buildLLMPrompt = (template, detail, secondaryDetail, tertiaryDetail, ethnicity, skinTone, hairColor, background, backgroundType, vibe, imageCount, occasion, isVariation = false, styleHint) => {
3
- const needsBothHands = template.id === 'hand_model' && imageCount >= 3;
4
- const quantityConstraint = imageCount > 1
5
- ? `The model is wearing ALL the provided pieces together. Do NOT add any other jewelry.${needsBothHands ? ' IMPORTANT: Show BOTH hands with the pieces distributed naturally and elegantly across both hands — do NOT cram all pieces onto a single hand.' : ''}`
6
- : 'The model is wearing ONLY the single piece of jewelry shown in the reference. Do NOT add matching earrings, necklaces, or other rings.';
7
- // Dynamic Base Concept
8
- let ethnicityLabel = (ethnicity && ethnicity.id !== 'none') ? ethnicity.name : "professional female";
9
- // Diversity Injection: Pick a specific region if available
10
- if (ethnicity && ethnicity.id && ETHNICITY_REGIONS[ethnicity.id]) {
11
- const regions = ETHNICITY_REGIONS[ethnicity.id];
12
- const randomRegion = regions[Math.floor(Math.random() * regions.length)];
13
- ethnicityLabel = `${randomRegion} (${ethnicity.name})`;
14
- }
15
- let basePrompt = template.basePrompt;
16
- basePrompt = basePrompt.replace(/\[ETHNICITY\]/g, ethnicityLabel);
17
- const hairColorLabel = (hairColor && hairColor.id !== 'none') ? hairColor.name.toLowerCase() : "natural colored";
18
- basePrompt = basePrompt.replace(/\[HAIR_COLOR\]/g, hairColorLabel);
19
- let instruction = `Write a highly detailed, structured photorealistic prompt for the specific jewelry shown in the attached images.
20
-
21
- ══════════════════════════════════
22
- 📸 PHOTOGRAPHY SPECIFICATION
23
- ══════════════════════════════════
24
- Base Concept: ${basePrompt}
25
- Camera: Hasselblad X2D 100C, 120mm Macro lens, f/2.8
26
- Target: Authentic, high-end editorial photography. Cinematic, naturalistic, slightly imperfect.
27
-
28
- ══════════════════════════════════
29
- 💎 SUBJECT & JEWELRY (HIGHEST PRIORITY)
30
- ══════════════════════════════════
31
- ${quantityConstraint}
32
- CRITICAL: Describe the jewelry EXACTLY as seen in the reference images. Preserve all details: metal type, stone cuts, chain style, settings, etc.
33
- Do NOT invent additional jewelry pieces or embellishments.
34
- Do NOT add sparkles, glitter, or magical glow effects.
35
- `;
36
- // OCCASION CONTEXT - Give this prominence if selected
37
- if (occasion?.promptDetails) {
38
- instruction += `
39
- ══════════════════════════════════
40
- 🎭 OCCASION CONTEXT: ${occasion.name.toUpperCase()}
41
- ══════════════════════════════════
42
- ${occasion.description}
43
-
44
- 🏛️ SETTING & ENVIRONMENT:
45
- ${occasion.promptDetails.setting}
46
-
47
- ✨ ATMOSPHERE & MOOD:
48
- ${occasion.promptDetails.atmosphere}
49
-
50
- 🎨 COLOR PALETTE:
51
- ${occasion.promptDetails.colorPalette}
52
-
53
- 🌟 CULTURAL & THEMATIC ELEMENTS:
54
- ${occasion.promptDetails.culturalElements}
55
-
56
- 💄 MODEL STYLING & AESTHETIC:
57
- ${occasion.promptDetails.styling}
58
- `;
59
- }
60
- // MODEL CUSTOMIZATIONS
61
- let modelDetails = [];
62
- if (ethnicity && ethnicity.id !== 'none') {
63
- modelDetails.push(`Model Ethnicity: ${ethnicityLabel}`);
64
- }
65
- if (detail) {
66
- // Replace [HAIR_COLOR] in the detail value (e.g. Hairstyle Context)
67
- const detailValue = detail.value.replace(/\[HAIR_COLOR\]/g, hairColorLabel);
68
- modelDetails.push(`${template.customizationLabel}: ${detailValue}`);
69
- }
70
- else if (template.customizationLabel?.toLowerCase().includes('makeup')) {
71
- modelDetails.push(`${template.customizationLabel}: completely bare faced, no makeup, fresh natural skin`);
72
- }
73
- else if (template.customizationLabel?.toLowerCase().includes('nail')) {
74
- modelDetails.push(`${template.customizationLabel}: natural unpainted nails with a clear healthy coat`);
75
- }
76
- if (secondaryDetail) {
77
- modelDetails.push(`${template.secondaryCustomizationLabel}: ${secondaryDetail.value}`);
78
- }
79
- else if (template.secondaryCustomizationLabel?.toLowerCase().includes('makeup')) {
80
- modelDetails.push(`${template.secondaryCustomizationLabel}: completely bare faced, no makeup, fresh natural skin`);
81
- }
82
- else if (template.secondaryCustomizationLabel?.toLowerCase().includes('nail')) {
83
- modelDetails.push(`${template.secondaryCustomizationLabel}: natural unpainted nails with a clear healthy coat`);
84
- }
85
- if (tertiaryDetail) {
86
- modelDetails.push(`${template.tertiaryCustomizationLabel}: ${tertiaryDetail.value}`);
87
- }
88
- else if (template.tertiaryCustomizationLabel?.toLowerCase().includes('makeup')) {
89
- modelDetails.push(`${template.tertiaryCustomizationLabel}: completely bare faced, no makeup, fresh natural skin`);
90
- }
91
- else if (template.tertiaryCustomizationLabel?.toLowerCase().includes('nail')) {
92
- modelDetails.push(`${template.tertiaryCustomizationLabel}: natural unpainted nails with a clear healthy coat`);
93
- }
94
- if (skinTone && skinTone.id !== 'none' && !template.id.includes('flatlay')) {
95
- modelDetails.push(`Model Skin Tone: ${skinTone.value}`);
96
- }
97
- if (hairColor && hairColor.id !== 'none' && !['hand_model', 'flatlay_creative', 'floating_minimal'].includes(template.id)) {
98
- modelDetails.push(`Model Hair Color: ${hairColor.value}`);
99
- }
100
- if (modelDetails.length > 0) {
101
- instruction += `
102
- ══════════════════════════════════
103
- 👤 MODEL SPECIFICATIONS
104
- ══════════════════════════════════
105
- ${modelDetails.join('\n')}
106
- The model should look like a natural, real human.
107
- `;
108
- }
109
- // SETTING & BACKGROUND (if not overridden by occasion)
110
- if (!occasion && (background || backgroundType || vibe)) {
111
- instruction += `
112
- ══════════════════════════════════
113
- 🎬 SETTING & ENVIRONMENT
114
- ══════════════════════════════════
115
- `;
116
- if (backgroundType) {
117
- const bgValue = backgroundType.id === 'interior' ? getRandomLuxuryInterior() : backgroundType.value;
118
- instruction += `Setting Type: ${bgValue}\n`;
119
- }
120
- if (background) {
121
- if (template.id === 'flatlay_creative') {
122
- instruction += `Secondary accent color/texture element to complement the main surface: ${background.value}\n`;
123
- }
124
- else {
125
- instruction += `Color Palette & Texture: ${background.value}\n`;
126
- }
127
- }
128
- if (vibe) {
129
- instruction += `Photography Style & Mood: ${vibe.value}\n`;
130
- }
131
- instruction += `\nBackground Treatment: HEAVILY BLURRED (deep cinematic bokeh) to keep focus strictly on the jewelry.
132
- `;
133
- }
134
- // TECHNICAL REQUIREMENTS
135
- instruction += `
136
- ══════════════════════════════════
137
- ⚙️ TECHNICAL REQUIREMENTS
138
- ══════════════════════════════════
139
- - Natural light reflections on jewelry (NO artificial sparkles or glow)
140
- - Sharp focus on jewelry with shallow depth of field
141
- - Authentic photographic quality (film grain acceptable)
142
- - Professional color grading
143
- - 2K resolution output quality
144
- `;
145
- // STYLE & POSE DIRECTION (for diversity in batch generation)
146
- if (styleHint) {
147
- instruction += `
148
- ══════════════════════════════════
149
- 🎭 STYLE & POSE DIRECTION
150
- ══════════════════════════════════
151
- ${styleHint}
152
- IMPORTANT: Follow this specific direction to ensure variety across generated images.
153
- `;
154
- }
155
- if (isVariation) {
156
- instruction += `
157
- ══════════════════════════════════
158
- 🔄 VARIATION INSTRUCTION
159
- ══════════════════════════════════
160
- Keep the SAME jewelry pieces and overall aesthetic, but RADICALLY CHANGE THE POSE.
161
- - If previous shot was static, make this dynamic
162
- - If previous was profile, try 3/4 view or different angle
163
- - Change hand placement, head tilt, or body position
164
- - Goal: Fresh perspective with different composition
165
- `;
166
- }
167
- instruction += `
168
- ══════════════════════════════════
169
- 🚫 STRICT PROHIBITIONS
170
- ══════════════════════════════════
171
- DO NOT add: fake sparkles, glitter particles, magical glows, lens flares, additional jewelry not in reference
172
- DO NOT change: the jewelry design, metal type, stone cuts, or any jewelry characteristics
173
- DO NOT use: artificial effects, over-processing, unrealistic elements
174
- DO NOT describe: skin details like pores, skin texture, or hyper-realistic skin features - just let the model look naturally human
175
-
176
- OUTPUT: A structured JSON-like prompt with distinct sections. Do not use a single block of text. Use the following format:
177
-
178
- {
179
- "Subject": "Detailed description of the jewelry and model...",
180
- "Environment": "Setting, background, and atmosphere...",
181
- "Lighting": "Lighting details...",
182
- "Photography": "Camera and technical specs..."
183
- }
184
-
185
- Ensure the content of each section is rich, dense, and highly descriptive.
186
- `;
187
- return instruction;
188
- };
189
- export const buildSystemInstruction = (template, ethnicity) => {
190
- const isFloating = template.id === 'floating_minimal';
191
- const isFlatlay = template.id === 'flatlay_creative';
192
- const isHandModel = template.id === 'hand_model';
193
- const isMuseumExhibit = template.id === 'museum_exhibit';
194
- const isRomance = template.id === 'romance_proposal';
195
- const isRomanticMood = template.id === 'romantic_mood';
196
- let llmSystemInstruction = '';
197
- if (isRomanticMood) {
198
- llmSystemInstruction = `You are a world-renowned still-life photographer and prop stylist for luxury jewelry and lifestyle brands.
199
- Your task is to write a prompt for an AI image generator to create a DREAMY, INTIMATE STILL-LIFE PHOTOGRAPH of jewelry in a romantic setting.
200
-
201
- CRITICAL GUIDELINES:
202
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
203
- - Do NOT invent new pieces.
204
- - Do NOT modify the design of the existing jewelry.
205
- 2. **PROP DISCIPLINE (CRITICAL)**: Use ONLY the specific prop/scene described in the user's customization choice. Do NOT add other props.
206
- - If the user chose "candles", the scene is ONLY candles and the jewelry. Do NOT add roses, letters, or other objects.
207
- - If the user chose "rose petals", the scene is ONLY rose petals and the jewelry. Do NOT add candles, letters, or other objects.
208
- - Keep the scene focused and minimal — one prop theme, not a cluttered collection of romantic clichés.
209
- 3. **Subject**: NO human model, NO body parts, NO mannequins, NO hands.
210
- 4. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow". Use natural light and genuine material textures.
211
- 5. **Realism**: Use product photography keywords (Hasselblad X2D 100C, 120mm Macro, f/2.8, shallow depth of field). Props must look real and tactile.
212
- 6. **Vibe**: Romantic, intimate, dreamy, feminine.
213
-
214
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
215
- }
216
- else if (isRomance) {
217
- const ethnicityPrompt = (ethnicity && ethnicity.id !== 'none') ? ethnicity.value : "Professional couple";
218
- llmSystemInstruction = `You are a world-renowned wedding and engagement photographer, known for capturing raw, authentic emotional moments.
219
- Your task is to write a prompt for an AI image generator to create an INTIMATE, EMOTIONALLY POWERFUL photograph based on reference jewelry images.
220
-
221
- CRITICAL GUIDELINES:
222
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
223
- - Do NOT invent new pieces (e.g. do not add a necklace if only a ring is provided).
224
- - Do NOT modify the design of the existing jewelry.
225
- 2. **Subject**: Focus on the emotional authenticity of the moment. The jewelry (especially rings) should be prominently visible but feel naturally integrated.
226
- - Hands, fingers, and body language are critical storytelling elements.
227
- - Ethnicity context: ${ethnicityPrompt}
228
- 3. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow". Natural light reflection only.
229
- 4. **Realism**: Use photography keywords (Contax 645, Zeiss Planar 80mm f/2, Kodak Portra 400).
230
- 5. **Vibe**: Tender, authentic, emotionally powerful, intimate. Real love story energy.
231
-
232
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
233
- }
234
- else if (isMuseumExhibit) {
235
- llmSystemInstruction = `You are a world-renowned museum photographer and exhibition designer.
236
- Your task is to write a prompt for an AI image generator to create a MUSEUM-QUALITY photograph of jewelry displayed as a priceless exhibit.
237
-
238
- CRITICAL GUIDELINES:
239
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
240
- - Do NOT invent new pieces.
241
- - Do NOT modify the design of the existing jewelry.
242
- 2. **Subject**: The jewelry should be displayed as a priceless artifact worthy of the world's greatest museums.
243
- - NO human model, NO body parts, NO mannequins.
244
- 3. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow". Professional museum lighting only.
245
- 4. **Realism**: Use professional museum photography equipment and lighting terminology.
246
- 5. **Vibe**: Reverent, prestigious, archival quality, awe-inspiring.
247
-
248
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
249
- }
250
- else if (isFloating) {
251
- llmSystemInstruction = `You are a world-renowned product photographer and creative director for luxury jewelry campaigns.
252
- Your task is to write a prompt for an AI image generator to create a HYPER-REALISTIC product photograph based on reference images.
253
-
254
- CRITICAL GUIDELINES:
255
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
256
- - Do NOT invent new pieces (e.g. do not add earrings if only a necklace is provided).
257
- - Do NOT modify the design of the existing jewelry.
258
- 2. **Subject**: The jewelry should appear to be SUSPENDED in mid-air, floating, with NO human model, NO body parts, and NO mannequins. Focus on dramatic lighting, shadows, and a clean, minimalist composition.
259
- 3. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow". Natural light reflection only.
260
- 4. **Realism**: Use photography keywords (Hasselblad X2D 100C, Macro Lens 120mm, f/2.8).
261
- 5. **Vibe**: Old money, elegant, classy, expensive, minimalist.
262
-
263
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
264
- }
265
- else if (isFlatlay) {
266
- llmSystemInstruction = `You are a world-renowned product photographer and creative director for luxury jewelry campaigns.
267
- Your task is to write a prompt for an AI image generator to create a HYPER-REALISTIC product photograph based on reference images.
268
-
269
- CRITICAL GUIDELINES:
270
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
271
- - Do NOT invent new pieces (e.g. do not add earrings if only a necklace is provided).
272
- - Do NOT modify the design of the existing jewelry.
273
- 2. **Subject**: The jewelry should be displayed as a creative still-life composition, with NO human model, NO body parts, and NO mannequins.
274
- - The jewelry may be laid flat on a surface, OR elevated on geometric pedestals, cubes, stone risers, plinths, or sculptural props.
275
- - Lighting should always look natural and photographic � soft studio light, window light, or gentle directional light. Shadows should feel organic, not artificial.
276
- 3. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow", neon lighting, overly stylized color gels. Natural light reflection only.
277
- 4. **Realism**: Use photography keywords (Hasselblad X2D 100C, Macro Lens 120mm, f/2.8).
278
- 5. **Vibe**: Old money, elegant, classy, expensive, artistic.
279
-
280
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
281
- }
282
- else if (isHandModel) {
283
- llmSystemInstruction = `You are a world-renowned product photographer and creative director for luxury jewelry campaigns.
284
- Your task is to write a prompt for an AI image generator to create a HYPER-REALISTIC hand model photograph based on reference images.
285
-
286
- CRITICAL GUIDELINES:
287
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
288
- - Do NOT invent new pieces (e.g. do not add earrings if only a ring is provided).
289
- - Do NOT modify the design of the existing jewelry.
290
- 2. **FRAMING (CRITICAL)**: The image focuses on the hand, wrist, and forearm area.
291
- - NO face, head, or shoulders visible.
292
- - The forearm may be bare OR elegantly sleeved (luxurious fabrics like silk, cashmere, lace, velvet).
293
- - When clothing is present, it should be high-end and sophisticated.
294
- 3. **Subject**: A model's hand(s) (age 20-30) with elegant, relaxed pose wearing the jewelry. Focus on authentic skin texture and natural nail appearance.
295
- - If 3 or more jewelry pieces are provided, show BOTH hands to distribute the pieces naturally and elegantly across both hands. Avoid cramming all pieces onto a single hand.
296
- - If 1-2 pieces, a single hand is fine.
297
- 4. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow". Natural light reflection only.
298
- 5. **Realism**: Use photography keywords (Hasselblad X2D 100C, Macro Lens 120mm, f/2.8).
299
- 6. **Vibe**: Old money, elegant, classy, expensive, feminine.
300
-
301
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
302
- }
303
- else {
304
- const ethnicityPrompt = (ethnicity && ethnicity.id !== 'none') ? ethnicity.value : "Professional female model";
305
- llmSystemInstruction = `You are a world-renowned fashion photographer and creative director for Vogue Arabia and High Jewelry campaigns.
306
- Your task is to write a prompt for an AI image generator to create an AUTHENTIC, CINEMATIC photograph based on reference images. Skin texture should look natural and smooth.
307
-
308
- CRITICAL GUIDELINES:
309
- 1. **JEWELRY FIDELITY (TOP PRIORITY)**: The final image must contain ONLY the jewelry pieces visible in the reference images.
310
- - Do NOT invent new pieces (e.g. do not add earrings if only a necklace is provided).
311
- - Do NOT modify the design of the existing jewelry.
312
- - If one ring is provided, the model wears ONE ring.
313
- 2. **Subject**: ALWAYS a ${ethnicityPrompt} (age 20-30).
314
- 3. **NO FAKE EFFECTS**: Strictly FORBID "sparkles", "glitter particles", "magical glow". Natural light reflection only.
315
- 4. **Realism**: Use photography keywords (Hasselblad X2D 100C, Macro Lens 120mm, f/2.8).
316
- 5. **Vibe**: Old money, elegant, classy, expensive, feminine.
317
-
318
- Output: A single, dense, highly descriptive English prompt. No introductions.`;
319
- }
320
- return llmSystemInstruction;
321
- };
322
- //# sourceMappingURL=buildPrompt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildPrompt.js","sourceRoot":"","sources":["../../src/prompt/buildPrompt.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAC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