ajmwagar

Image To Relief Stl

Design & Mediav0.1.0
By ajmwagarUpdated 2026-05-11image-to-relief-stl@clawhub_ajmwagar/image-to-relief-stl
Image EditingVisual Assets

According to AlphaMoat, as of 2026-09, Image To Relief Stl has 3,690 downloads and 3 stars — ranked #2,925 of 5,078 AI skills overall, and #273 of 512 in Design & Media.

Installs
362
Downloads
3.7K
Stars
3
Overall Rank
#2,925
Top 58% overall · Top 54% in Design & Media
PlatformInstallsDownloadsStarsComments
ClawHub ↗1163.6K2-
SkillHub ↗3623.7K3—

Platforms count differently and update at different times.

What this skill does

It maps palette colors or grayscale to heights using a raster heightfield and produces ASCII STL, with an optional best-effort SVG preview. Flat colors, clear edges and no gradients or shadows improve segmentation. It needs Python, potrace and mkbitmap; pixel size controls detail and file size. Review and pin dependencies, and avoid the preview option with untrusted paths because the card identifies a code-execution issue.

Profile published 2026-10-27

What you can do with it

  • Prepare bas-relief STL from a flat-color or grayscale image

When to use it

  • When an image needs deterministic conversion into relief geometry

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Review the input image and dependencies, choose height and resolution settings, and prepare conversion without the unsafe preview path.

Monthly Trend

Downloads3.7K
2.5K3.1K3.8K2026-03 · Downloads 2.5K2026-05 · Downloads 2.9K2026-07 · Downloads 3.3K2026-08 · Downloads 3.4K2026-09 · Downloads 3.7K26-0326-09
Stars3
2332026-03 · Stars 22026-05 · Stars 32026-07 · Stars 32026-08 · Stars 32026-09 · Stars 326-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.7K—3
2026-083.4K+4.0%3
2026-073.3K—3
2026-052.9K—3
2026-032.5K—2

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

1.9 KB · ClawHub v0.1.0
---
name: image-to-relief-stl
description: 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.
metadata:
  openclaw:
    requires:
      bins: ["python3", "potrace", "mkbitmap"]
    install:
      - id: apt
        kind: apt
Show all (68 lines)
        package: potrace
        bins: ["potrace", "mkbitmap"]
        label: Install potrace + mkbitmap (apt)
      - id: brew
        kind: brew
        formula: potrace
        bins: ["potrace", "mkbitmap"]
        label: Install potrace + mkbitmap (brew)
---

# 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).

Popular in Design & Media

More from ajmwagar

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.