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