Перейти к содержимому
TakoAPI
Назад к навыкам

svg-to-image

от qrost

Image & Video Generation
392Число загрузок по данным clawskills.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 — любой кодинг-агент, которым пользуетесь.

Ссылки