image-to-relief-stl
Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.
Best use case
image-to-relief-stl is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.
Teams using image-to-relief-stl should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/image-to-relief-stl/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How image-to-relief-stl Compares
| Feature / Agent | image-to-relief-stl | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Turn a source image (or multi-color mask image) into a 3D-printable bas-relief STL by mapping colors (or grayscale) to heights. Use when you have an image from an image-gen skill (nano-banana-pro, etc.) and want a real, printable model (STL) via a deterministic pipeline.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# image-to-relief-stl Generate a **watertight, printable STL** from an input image by mapping colors (or grayscale) to heights. This is an orchestrator-friendly workflow: - Use **nano-banana-pro** (or any image model) to generate a **flat-color** image. - Run this skill to convert it into a **bas-relief** model. ## Practical constraints (to make it work well) Ask the image model for: - **exactly N solid colors** (no gradients) - **no shadows / no antialiasing** - bold shapes with clear edges That makes segmentation reliable. ## Quick start (given an image) ```bash bash scripts/image_to_relief.sh input.png --out out.stl \ --mode palette \ --palette '#000000=3.0,#ffffff=0.0' \ --base 1.5 \ --pixel 0.4 ``` ### Grayscale mode ```bash bash scripts/image_to_relief.sh input.png --out out.stl \ --mode grayscale \ --min-height 0.0 \ --max-height 3.0 \ --base 1.5 \ --pixel 0.4 ``` ## Outputs - `out.stl` (ASCII STL) - optional `out-preview.svg` (vector preview via potrace; best-effort) ## Notes - This v0 uses a **raster heightfield** meshing approach (robust, no heavy CAD deps). - The `--pixel` parameter controls resolution (smaller = higher detail, bigger STL).
Related Skills
ImageMagick Moltbot Skill
Comprehensive ImageMagick operations for image manipulation in Moltbot.
table-image
Generate images from tables for better readability in messaging apps like Telegram. Use when displaying tabular data.
stress-relief
Manage stress with quick techniques, stress logging, and recovery tools
anxiety-relief
Manage anxiety with grounding exercises, breathing techniques, and thought reframing
ms-foundry-image-gen
Azure Foundry image generation skill for OpenClaw; generates images via a Foundry deployment and returns image.
antigravity-image-gen
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
gemini-image-gen
Generate and edit images via Google Gemini API. Supports Gemini native generation, Imagen 3, style presets, and batch generation with HTML gallery. Zero dependencies — pure Python stdlib.
antigravity-image
Generate images using the internal Antigravity Sandbox API (Gemini 3 Pro Image). Supports text-to-image generation via internal Google endpoints.
zhipu-cogview-image
Generate images using Zhipu AI's CogView model.
doubao-image-gen
Use Zhipu (智谱) web search API for searching the internet.
10-of-my-most-popular-text-to-image-series-prompts-78b0897e
generate a bunch of images, then you curate the results to handpick the best ones
Seasonal Product Image
**Version**: 1.0.0