본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

image-to-relief-stl

ajmwagar 제작

Transportation
2.0kclawskills.sh가 보고한 다운로드 수
2스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Turn a source image (or multi-color mask image)

설명

이 스킬이 하는 일

Converts an image into a watertight, 3D-printable bas-relief STL by mapping colors or grayscale values to surface heights. Works in palette mode for flat-color images with exact color-to-height assignments, or grayscale mode for continuous height mapping. Designed to pair with image generation skills so a generated image becomes a physical model.

Uses a raster heightfield approach that needs no CAD software or heavy 3D modeling dependencies, just Python and potrace.

사용 시점

  • Converting AI-generated flat-color art into printable wall plaques
  • Turning a logo or icon into a bas-relief badge
  • Making lithophanes from grayscale source images
  • Creating embossed signs or name tags from simple illustrations
  • Producing physical keepsakes from digitally generated artwork

예시 워크플로

입력

User asks: convert my flat-color PNG logo into a printable STL with dark areas raised

에이전트
  1. 1

    Receive the input PNG and identify the target color-to-height mapping

  2. 2

    Run image_to_relief.sh in palette mode with hex color codes mapped to heights

  3. 3

    Set base thickness and pixel resolution parameters

  4. 4

    Generate the heightfield mesh and write out the ASCII STL

  5. 5

    Produce an SVG preview via potrace for visual confirmation

출력

A watertight out.stl file ready for slicing, plus an optional out-preview.svg

요구 사항

  • potrace and mkbitmap installed (apt: sudo apt install potrace, or brew: brew install potrace)

설치

clawhub install ajmwagar/image-to-relief-stl

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크