@umituz/react-native-ai-generation-content 1.83.84 → 1.83.85
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.85",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -1,44 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Base Prompt Structure Constants
|
|
3
3
|
* Core prompt building blocks for AI image generation
|
|
4
|
+
* Optimized for Gemini 3 Pro Image (nano-banana-2) — natural language format
|
|
4
5
|
*/
|
|
5
6
|
|
|
6
|
-
export const IDENTITY_PRESERVATION_CORE = `
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"The face must be EXACTLY as it appears in the reference photo - 100% identical",
|
|
11
|
-
"Preserve every facial detail: bone structure, eye shape, eye color, nose shape, lip shape",
|
|
12
|
-
"Keep the person instantly recognizable - any deviation is NOT acceptable"
|
|
13
|
-
],
|
|
14
|
-
"forbidden_modifications": [
|
|
15
|
-
"Do NOT change face shape or facial proportions",
|
|
16
|
-
"Do NOT alter eye color, eye shape, or eye spacing",
|
|
17
|
-
"Do NOT modify nose shape, size, or position",
|
|
18
|
-
"Do NOT change lip shape, thickness, or natural expression",
|
|
19
|
-
"Do NOT remove natural features like freckles, moles, or wrinkles"
|
|
20
|
-
],
|
|
21
|
-
"verification": "Before output: confirm face matches reference photo with 100% accuracy"
|
|
22
|
-
}`;
|
|
7
|
+
export const IDENTITY_PRESERVATION_CORE = `IDENTITY PRESERVATION (HIGHEST PRIORITY):
|
|
8
|
+
Preserve the EXACT facial appearance from reference photos with 100% accuracy.
|
|
9
|
+
Keep every detail identical: bone structure, eye shape, eye color, nose, lips, skin texture, freckles, moles.
|
|
10
|
+
The person must be instantly recognizable — do NOT alter, idealize, or beautify any facial feature.`;
|
|
23
11
|
|
|
24
|
-
export const PHOTOREALISTIC_RENDERING = `
|
|
25
|
-
|
|
26
|
-
"style": "PHOTOREALISTIC PHOTOGRAPH",
|
|
27
|
-
"quality": "high quality, professional photography",
|
|
28
|
-
"lighting": "Natural lighting with realistic shadows and highlights",
|
|
29
|
-
"prohibited": "STRICTLY NO anime, cartoons, illustrations, sketches, 3D renders, or non-photorealistic styles",
|
|
30
|
-
"output": "Must look like a real photograph"
|
|
31
|
-
}`;
|
|
12
|
+
export const PHOTOREALISTIC_RENDERING = `STYLE: Photorealistic photograph, high quality, professional photography, natural lighting with realistic shadows.
|
|
13
|
+
PROHIBITED: No anime, cartoons, illustrations, sketches, 3D renders, paintings, or non-photorealistic styles.`;
|
|
32
14
|
|
|
33
|
-
export const NATURAL_POSE_GUIDELINES = `
|
|
34
|
-
|
|
35
|
-
"framing": "Medium-shot cinematic portrait (waist-up or full-body as appropriate)",
|
|
36
|
-
"pose": "Natural, relaxed pose - standing, sitting, or contextually appropriate position",
|
|
37
|
-
"eye_contact": "Looking directly at the camera with natural expression",
|
|
38
|
-
"body_language": "Confident, natural body language without exaggerated or awkward positions",
|
|
39
|
-
"interaction": "If multiple people: standing side-by-side, close together, or naturally interacting",
|
|
40
|
-
"avoid": "NO absurd poses, unnatural contortions, or physically impossible positions"
|
|
41
|
-
}`;
|
|
15
|
+
export const NATURAL_POSE_GUIDELINES = `POSE: Natural, relaxed body language appropriate to the scenario context.
|
|
16
|
+
AVOID: No absurd poses, unnatural contortions, or physically impossible positions.`;
|
|
42
17
|
|
|
43
18
|
export const MASTER_BASE_PROMPT = `${IDENTITY_PRESERVATION_CORE}
|
|
44
19
|
|