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.

7 stars

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

$curl -o ~/.claude/skills/image-to-relief-stl/SKILL.md --create-dirs "https://raw.githubusercontent.com/Demerzels-lab/elsamultiskillagent/main/public/skills/ajmwagar/image-to-relief-stl/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/image-to-relief-stl/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How image-to-relief-stl Compares

Feature / Agentimage-to-relief-stlStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/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

7
from Demerzels-lab/elsamultiskillagent

Comprehensive ImageMagick operations for image manipulation in Moltbot.

table-image

7
from Demerzels-lab/elsamultiskillagent

Generate images from tables for better readability in messaging apps like Telegram. Use when displaying tabular data.

stress-relief

7
from Demerzels-lab/elsamultiskillagent

Manage stress with quick techniques, stress logging, and recovery tools

anxiety-relief

7
from Demerzels-lab/elsamultiskillagent

Manage anxiety with grounding exercises, breathing techniques, and thought reframing

ms-foundry-image-gen

7
from Demerzels-lab/elsamultiskillagent

Azure Foundry image generation skill for OpenClaw; generates images via a Foundry deployment and returns image.

antigravity-image-gen

7
from Demerzels-lab/elsamultiskillagent

Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.

gemini-image-gen

7
from Demerzels-lab/elsamultiskillagent

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

7
from Demerzels-lab/elsamultiskillagent

Generate images using the internal Antigravity Sandbox API (Gemini 3 Pro Image). Supports text-to-image generation via internal Google endpoints.

zhipu-cogview-image

7
from Demerzels-lab/elsamultiskillagent

Generate images using Zhipu AI's CogView model.

doubao-image-gen

7
from Demerzels-lab/elsamultiskillagent

Use Zhipu (智谱) web search API for searching the internet.

10-of-my-most-popular-text-to-image-series-prompts-78b0897e

7
from Demerzels-lab/elsamultiskillagent

generate a bunch of images, then you curate the results to handpick the best ones

Seasonal Product Image

7
from Demerzels-lab/elsamultiskillagent

**Version**: 1.0.0