svg-drawCreate SVG images and convert them to PNG without external graphics libraries. Use when you need to generate custom illustrations, avatars, or artwork (e.g., "draw a dragon", "create an avatar", "make a logo") or convert SVG files to PNG format. This skill works by writing SVG text directly (no PIL/ImageMagick required) and uses system rsvg-convert for PNG conversion.
Install via ClawdBot CLI:
clawdbot install LiJY2015/svg-drawGenerate vector graphics and raster images using pure SVG code and system conversion tools.
For new drawings:
assets/ as starting points)For existing SVG files:
assets/ for existing templates (dragon, lobster, etc.)
# Example: Write SVG to file
write('/path/to/output.svg', svg_content)
/root/.openclaw/workspace/skills/svg-draw/scripts/svg_to_png.sh input.svg output.png 400 400
Always include:
tag with xmlns="http://www.w3.org/2000/svg" and viewBox (prevents transparent backgrounds)width and height attributesCommon SVG elements:
, , , , with text-anchor="middle" for centeringopacity attribute for transparency effectsExample character structure:
Background â Body â Head â Face features â Limbs â Accessories â Name
Use the bundled conversion script:
/root/.openclaw/workspace/skills/svg-draw/scripts/svg_to_png.sh <input.svg> <output.png> [width] [height]
Parameters:
input.svg: Source SVG file pathoutput.png: Destination PNG file pathwidth: Output width in pixels (default: 400)height: Output height in pixels (default: 400)Example:
/root/.openclaw/workspace/skills/svg-draw/scripts/svg_to_png.sh dragon.svg dragon.png 512 512
assets/dragon_template.svg)Blue dragon with:
Customization ideas:
fill="#4a90d9" for different body colorsfill="#ffcc00"assets/lobster_template.svg)Red lobster with:
Customization ideas:
fill="#e85d04" (darker red) or fill="#f48c06" (orange)Friendly/Cute:
#4a90d9 (blue), #f48c06 (orange)#ffcc00 (yellow), #ff6b6b (coral)#1a1a2e (dark blue)Professional:
Change colors: Find fill="#" or stroke="#" attributes and replace the hex codes
Resize elements: Adjust rx, ry (ellipses) or width, height (rectangles)
Reposition: Modify cx, cy (circles/ellipses) or x, y (rectangles)
Add text:
<text x="200" y="370" font-family="Arial, sans-serif" font-size="24" font-weight="bold" fill="#ffcc00" text-anchor="middle">Your Text</text>
svg_to_png.sh - Convert SVG to PNG using rsvg-convertdragon_template.svg - Friendly blue dragonlobster_template.svg - Cute red lobsterSVG not rendering:
tag with xmlns attributeviewBox is set correctlyConversion fails:
rsvg-convert is installed: which rsvg-convertImage looks wrong:
Generated Mar 1, 2026
Users can generate unique avatars for social media profiles, forums, or gaming platforms by customizing templates like the dragon or lobster with personal colors and features. This skill enables quick, scalable illustrations without needing graphic design software, ideal for individuals seeking distinctive online identities.
Small businesses or startups can create simple, vector-based logos using geometric shapes and limited color palettes as outlined in the design guidelines. The skill allows for easy adjustments and high-resolution exports, supporting branding efforts with minimal cost and technical expertise.
Educators and content creators can generate custom SVG illustrations for e-learning materials, such as diagrams, characters, or icons, by modifying templates or writing SVG from scratch. This facilitates engaging visual aids that are easily convertible to PNG for use in presentations or online courses.
Artists or entrepreneurs can produce vector artwork for digital merchandise like stickers, T-shirts, or posters by leveraging the skill's templates and conversion tools. The ability to customize colors and features enables rapid prototyping and scalable production for online marketplaces.
Offer a free basic avatar creation tool using the skill's templates, with premium features like advanced customization options, exclusive templates, or batch conversions for a subscription fee. This model attracts users with easy access and monetizes through upselling enhanced capabilities.
Provide logo design services to small businesses by utilizing the skill to quickly generate and iterate on vector-based logos. Charge per project or offer retainer packages for ongoing design support, leveraging the skill's efficiency to reduce costs and turnaround time.
Create and license custom SVG illustrations to educational platforms or publishers for use in textbooks, online courses, or interactive apps. Use the skill to produce scalable graphics that can be easily converted and integrated, generating revenue through licensing agreements or royalty shares.
đŹ Integration Tip
Integrate this skill into chat platforms like DingTalk or Telegram by automating SVG generation and PNG conversion workflows, ensuring rsvg-convert is installed on the system for reliable image processing.
Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.
Capture frames or clips from RTSP/ONVIF cameras.
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.
Generate images using the internal Google Antigravity API (Gemini 3 Pro Image). High quality, native generation without browser automation.
äœżçšć çœź image_generate.py èæŹçæćŸç, ć〿ž æ°ć ·äœç `prompt`ă
AI image generation powered by CellCog. Create images, edit photos, consistent characters, product photography, reference-based images, sets of images, style transfer. Professional image creation with AI.