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

svg-to-image

qrost 제작

Image & Video Generation
392clawskills.sh가 보고한 다운로드 수
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Convert SVG to PNG or JPG for quick sharing (e.g.

설명

이 스킬이 하는 일

Converts SVG files to PNG or JPG using cairosvg and Pillow. Supports custom output dimensions and DPI. Works with OpenClaw's media delivery pipeline to send generated images directly in conversation.

Handles conversion and in-chat delivery in one step without opening a graphics editor or manually uploading the file.

사용 시점

  • Sending a vector diagram as a PNG in Telegram
  • Exporting a map SVG at a fixed pixel width for a report
  • Converting design tool output to JPG for document embedding
  • Rasterizing diagramming workflow output for quick sharing
  • Preparing print-ready raster images from SVG source files

예시 워크플로

입력

User asks: Convert map.svg to a 1200px wide JPG and send it

에이전트
  1. 1

    Run convert_svg.py with map.svg, -f jpg, --width 1200, output to /tmp/map.jpg

  2. 2

    Script rasterizes the SVG using cairosvg at the specified width

  3. 3

    Send the generated JPG to the user via the OpenClaw media tool

출력

JPG image delivered to the user in the conversation

요구 사항

  • cairosvg Python package (run pip install -r requirements.txt from the skill folder)
  • Pillow Python package (required for JPG output, included in requirements.txt)
  • libcairo2 system library on Linux/Debian/Ubuntu (sudo apt install libcairo2)

설치

clawhub install qrost/svg-to-image

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

링크