Image to Prompt
Analyze images and generate detailed, reproduction-quality prompts for AI image generation.
Workflow
Step 1: Category Detection
First, classify the image into one of these categories:
portrait — People as main subject (photos, artwork, digital art)
landscape — Natural scenery, cityscapes, architecture, outdoor environments
product — Commercial product photos, merchandise
animal — Animals as main subject
illustration — Diagrams, infographics, UI mockups, technical drawings
other — Images that don't fit above categories
Step 2: Category-Specific Analysis
Generate a detailed prompt based on the detected category.
Usage
Basic Analysis
# Analyze an image (auto-detect category)
openclaw message send --image /path/to/image.jpg "Analyze this image and generate a detailed prompt for reproduction"
Specify Output Format
Natural Language (default):
Analyze this image and write a detailed, flowing prompt description (600-1000 words for portraits, 400-600 for others).
Structured JSON:
Analyze this image and output a structured JSON description with all visual elements categorized.
With Dimensions Extraction
Request dimension highlights to get tagged phrases for each visual aspect:
Analyze this image with dimension extraction. Tag phrases for: backgrounds, objects, characters, styles, actions, colors, moods, lighting, compositions, themes.
Category-Specific Elements
Portrait Analysis Covers:
- Model/Style: Photography type, quality level, visual style
- Subject: Gender, age, ethnicity, skin tone, body type
- Facial Features: Eyes, lips, face shape, expression
- Hair: Color, length, style, part
- Pose: Body position, orientation, leg/hand positions, gaze
- Clothing: Type, color, pattern, fit, material, style
- Accessories: Jewelry, bags, hats, etc.
- Environment: Location, ground, background, atmosphere
- Lighting: Type, time of day, shadows, contrast, color temperature
- Camera: Angle, height, shot type, lens, depth of field, perspective
- Technical: Realism, post-processing, resolution
Landscape Analysis Covers:
- Terrain and water features
- Sky and atmospheric elements
- Foreground/background composition
- Natural lighting and atmosphere
- Color palette and photography style
Product Analysis Covers:
- Product features and materials
- Design elements and shape
- Staging and background
- Studio lighting setup
- Commercial photography style
Animal Analysis Covers:
- Species identification and markings
- Pose and behavior
- Expression and character
- Habitat and setting
- Wildlife/pet photography style
Illustration Analysis Covers:
- Diagram type (flowchart, infographic, UI, etc.)
- Visual elements (icons, shapes, connectors)
- Layout and hierarchy
- Design style (flat, isometric, etc.)
- Color scheme and meaning
Output Examples
Natural Language Output (Portrait)
{
"prompt": "A stunning photorealistic portrait of a young woman in her mid-20s with fair porcelain skin and warm pink undertones. She has striking emerald green almond-shaped eyes with long dark lashes, full rose-colored lips curved in a subtle confident smile, and an oval face with high cheekbones..."
}
Structured Output (Portrait)
{
"structured": {
"model": "photorealistic",
"quality": "ultra high",
"style": "cinematic natural light photography",
"subject": {
"identity": "young beautiful woman",
"gender": "female",
"age": "mid 20s",
"ethnicity": "European",
"skin_tone": "fair porcelain with pink undertones",
"body_type": "slim athletic",
"facial_features": {
"eyes": "emerald green, almond-shaped, intense gaze",
"lips": "full, rose pink, subtle smile",
"face_shape": "oval with high cheekbones",
"expression": "confident and serene"
},
"hair": {
"color": "warm honey blonde",
"length": "long",
"style": "soft waves",
"part": "center"
}
},
"pose": {
"position": "standing",
"body_orientation": "three-quarter turn to camera",
"legs": "weight on right leg, relaxed stance",
"hands": {
"right_hand": "resting on hip",
"left_hand": "hanging naturally at side"
},
"gaze": "direct eye contact with camera"
},
"clothing": {
"type": "flowing maxi dress",
"color": "dusty rose",
"pattern": "solid",
"details": "V-neckline, cinched waist, silk material",
"style": "romantic feminine"
},
"accessories": ["delicate gold necklace", "small hoop earrings"],
"environment": {
"location": "outdoor garden",
"ground": "cobblestone path",
"background": "blooming roses, soft bokeh",
"atmosphere": "dreamy and romantic"
},
"lighting": {
"type": "natural sunlight",
"time": "golden hour",
"shadow_quality": "soft diffused shadows",
"contrast": "medium",
"color_temperature": "warm"
},
"camera": {
"angle": "slightly below eye level",
"camera_height": "chest height",
"shot_type": "medium shot",
"lens": "85mm",
"depth_of_field": "shallow",
"perspective": "slight compression, flattering"
},
"mood": "romantic, confident, ethereal",
"realism": "highly photorealistic",
"post_processing": "soft color grading, subtle glow",
"resolution": "8k"
}
}
With Dimensions
{
"prompt": "...",
"dimensions": {
"backgrounds": ["outdoor garden", "blooming roses", "soft bokeh"],
"objects": ["delicate gold necklace", "small hoop earrings"],
"characters": ["young beautiful woman", "mid 20s", "European"],
"styles": ["photorealistic", "cinematic natural light photography"],
"actions": ["standing", "three-quarter turn", "direct eye contact"],
"colors": ["dusty rose", "honey blonde", "emerald green"],
"moods": ["romantic", "confident", "ethereal", "dreamy"],
"lighting": ["golden hour", "natural sunlight", "soft diffused shadows"],
"compositions": ["medium shot", "85mm", "shallow depth of field"],
"themes": ["romantic feminine", "portrait photography"]
}
}
Tips for Best Results
- High-resolution images produce more detailed prompts
- Clear, well-lit images yield better category detection
- Request structured output when you need programmatic access to individual elements
- Use dimensions extraction when building prompt databases or training data
- Specify word count expectations for natural language output if needed
Integration
This skill works with any vision-capable model. For best results, use:
- GPT-4 Vision
- Claude 3 (Opus/Sonnet)
- Gemini Pro Vision
1---2name: image2prompt3description: Analyze images and generate detailed prompts for image generation. Supports portrait, landscape, product, animal, illustration categories with structured or natural output.4---5
6# Image to Prompt
7
8Analyze images and generate detailed, reproduction-quality prompts for AI image generation.
9
10## Workflow
11
12**Step 1: Category Detection**
13First, classify the image into one of these categories:
14- `portrait` — People as main subject (photos, artwork, digital art)
15- `landscape` — Natural scenery, cityscapes, architecture, outdoor environments
16- `product` — Commercial product photos, merchandise
17- `animal` — Animals as main subject
18- `illustration` — Diagrams, infographics, UI mockups, technical drawings
19- `other` — Images that don't fit above categories
20
21**Step 2: Category-Specific Analysis**
22Generate a detailed prompt based on the detected category.
23
24## Usage
25
26### Basic Analysis
27
28```bash
29# Analyze an image (auto-detect category)
30openclaw message send --image /path/to/image.jpg "Analyze this image and generate a detailed prompt for reproduction"
31```
32
33### Specify Output Format
34
35**Natural Language (default):**
36```
37Analyze this image and write a detailed, flowing prompt description (600-1000 words for portraits, 400-600 for others).
38```
39
40**Structured JSON:**
41```
42Analyze this image and output a structured JSON description with all visual elements categorized.
43```
44
45### With Dimensions Extraction
46
47Request dimension highlights to get tagged phrases for each visual aspect:
48```
49Analyze this image with dimension extraction. Tag phrases for: backgrounds, objects, characters, styles, actions, colors, moods, lighting, compositions, themes.
50```
51
52## Category-Specific Elements
53
54### Portrait Analysis Covers:
55- **Model/Style**: Photography type, quality level, visual style
56- **Subject**: Gender, age, ethnicity, skin tone, body type
57- **Facial Features**: Eyes, lips, face shape, expression
58- **Hair**: Color, length, style, part
59- **Pose**: Body position, orientation, leg/hand positions, gaze
60- **Clothing**: Type, color, pattern, fit, material, style
61- **Accessories**: Jewelry, bags, hats, etc.
62- **Environment**: Location, ground, background, atmosphere
63- **Lighting**: Type, time of day, shadows, contrast, color temperature
64- **Camera**: Angle, height, shot type, lens, depth of field, perspective
65- **Technical**: Realism, post-processing, resolution
66
67### Landscape Analysis Covers:
68- Terrain and water features
69- Sky and atmospheric elements
70- Foreground/background composition
71- Natural lighting and atmosphere
72- Color palette and photography style
73
74### Product Analysis Covers:
75- Product features and materials
76- Design elements and shape
77- Staging and background
78- Studio lighting setup
79- Commercial photography style
80
81### Animal Analysis Covers:
82- Species identification and markings
83- Pose and behavior
84- Expression and character
85- Habitat and setting
86- Wildlife/pet photography style
87
88### Illustration Analysis Covers:
89- Diagram type (flowchart, infographic, UI, etc.)
90- Visual elements (icons, shapes, connectors)
91- Layout and hierarchy
92- Design style (flat, isometric, etc.)
93- Color scheme and meaning
94
95## Output Examples
96
97### Natural Language Output (Portrait)
98```json
99{
100 "prompt": "A stunning photorealistic portrait of a young woman in her mid-20s with fair porcelain skin and warm pink undertones. She has striking emerald green almond-shaped eyes with long dark lashes, full rose-colored lips curved in a subtle confident smile, and an oval face with high cheekbones..."
101}
102```
103
104### Structured Output (Portrait)
105```json
106{
107 "structured": {
108 "model": "photorealistic",
109 "quality": "ultra high",
110 "style": "cinematic natural light photography",
111 "subject": {
112 "identity": "young beautiful woman",
113 "gender": "female",
114 "age": "mid 20s",
115 "ethnicity": "European",
116 "skin_tone": "fair porcelain with pink undertones",
117 "body_type": "slim athletic",
118 "facial_features": {
119 "eyes": "emerald green, almond-shaped, intense gaze",
120 "lips": "full, rose pink, subtle smile",
121 "face_shape": "oval with high cheekbones",
122 "expression": "confident and serene"
123 },
124 "hair": {
125 "color": "warm honey blonde",
126 "length": "long",
127 "style": "soft waves",
128 "part": "center"
129 }
130 },
131 "pose": {
132 "position": "standing",
133 "body_orientation": "three-quarter turn to camera",
134 "legs": "weight on right leg, relaxed stance",
135 "hands": {
136 "right_hand": "resting on hip",
137 "left_hand": "hanging naturally at side"
138 },
139 "gaze": "direct eye contact with camera"
140 },
141 "clothing": {
142 "type": "flowing maxi dress",
143 "color": "dusty rose",
144 "pattern": "solid",
145 "details": "V-neckline, cinched waist, silk material",
146 "style": "romantic feminine"
147 },
148 "accessories": ["delicate gold necklace", "small hoop earrings"],
149 "environment": {
150 "location": "outdoor garden",
151 "ground": "cobblestone path",
152 "background": "blooming roses, soft bokeh",
153 "atmosphere": "dreamy and romantic"
154 },
155 "lighting": {
156 "type": "natural sunlight",
157 "time": "golden hour",
158 "shadow_quality": "soft diffused shadows",
159 "contrast": "medium",
160 "color_temperature": "warm"
161 },
162 "camera": {
163 "angle": "slightly below eye level",
164 "camera_height": "chest height",
165 "shot_type": "medium shot",
166 "lens": "85mm",
167 "depth_of_field": "shallow",
168 "perspective": "slight compression, flattering"
169 },
170 "mood": "romantic, confident, ethereal",
171 "realism": "highly photorealistic",
172 "post_processing": "soft color grading, subtle glow",
173 "resolution": "8k"
174 }
175}
176```
177
178### With Dimensions
179```json
180{
181 "prompt": "...",
182 "dimensions": {
183 "backgrounds": ["outdoor garden", "blooming roses", "soft bokeh"],
184 "objects": ["delicate gold necklace", "small hoop earrings"],
185 "characters": ["young beautiful woman", "mid 20s", "European"],
186 "styles": ["photorealistic", "cinematic natural light photography"],
187 "actions": ["standing", "three-quarter turn", "direct eye contact"],
188 "colors": ["dusty rose", "honey blonde", "emerald green"],
189 "moods": ["romantic", "confident", "ethereal", "dreamy"],
190 "lighting": ["golden hour", "natural sunlight", "soft diffused shadows"],
191 "compositions": ["medium shot", "85mm", "shallow depth of field"],
192 "themes": ["romantic feminine", "portrait photography"]
193 }
194}
195```
196
197## Tips for Best Results
198
1991. **High-resolution images** produce more detailed prompts
2002. **Clear, well-lit images** yield better category detection
2013. **Request structured output** when you need programmatic access to individual elements
2024. **Use dimensions extraction** when building prompt databases or training data
2035. **Specify word count expectations** for natural language output if needed
204
205## Integration
206
207This skill works with any vision-capable model. For best results, use:
208- GPT-4 Vision
209- Claude 3 (Opus/Sonnet)
210- Gemini Pro Vision