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---56# Image to Prompt78Analyze images and generate detailed, reproduction-quality prompts for AI image generation.910## Workflow1112**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 environments16- `product` — Commercial product photos, merchandise17- `animal` — Animals as main subject18- `illustration` — Diagrams, infographics, UI mockups, technical drawings19- `other` — Images that don't fit above categories2021**Step 2: Category-Specific Analysis**22Generate a detailed prompt based on the detected category.2324## Usage2526### Basic Analysis2728```bash29# 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```3233### Specify Output Format3435**Natural Language (default):**36```37Analyze this image and write a detailed, flowing prompt description (600-1000 words for portraits, 400-600 for others).38```3940**Structured JSON:**41```42Analyze this image and output a structured JSON description with all visual elements categorized.43```4445### With Dimensions Extraction4647Request 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```5152## Category-Specific Elements5354### Portrait Analysis Covers:55- **Model/Style**: Photography type, quality level, visual style56- **Subject**: Gender, age, ethnicity, skin tone, body type57- **Facial Features**: Eyes, lips, face shape, expression58- **Hair**: Color, length, style, part59- **Pose**: Body position, orientation, leg/hand positions, gaze60- **Clothing**: Type, color, pattern, fit, material, style61- **Accessories**: Jewelry, bags, hats, etc.62- **Environment**: Location, ground, background, atmosphere63- **Lighting**: Type, time of day, shadows, contrast, color temperature64- **Camera**: Angle, height, shot type, lens, depth of field, perspective65- **Technical**: Realism, post-processing, resolution6667### Landscape Analysis Covers:68- Terrain and water features69- Sky and atmospheric elements70- Foreground/background composition71- Natural lighting and atmosphere72- Color palette and photography style7374### Product Analysis Covers:75- Product features and materials76- Design elements and shape77- Staging and background78- Studio lighting setup79- Commercial photography style8081### Animal Analysis Covers:82- Species identification and markings83- Pose and behavior84- Expression and character85- Habitat and setting86- Wildlife/pet photography style8788### Illustration Analysis Covers:89- Diagram type (flowchart, infographic, UI, etc.)90- Visual elements (icons, shapes, connectors)91- Layout and hierarchy92- Design style (flat, isometric, etc.)93- Color scheme and meaning9495## Output Examples9697### Natural Language Output (Portrait)98```json99{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```103104### Structured Output (Portrait)105```json106{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```177178### With Dimensions179```json180{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```196197## Tips for Best Results1981991. **High-resolution images** produce more detailed prompts2002. **Clear, well-lit images** yield better category detection2013. **Request structured output** when you need programmatic access to individual elements2024. **Use dimensions extraction** when building prompt databases or training data2035. **Specify word count expectations** for natural language output if needed204205## Integration206207This skill works with any vision-capable model. For best results, use:208- GPT-4 Vision209- Claude 3 (Opus/Sonnet)210- Gemini Pro Vision