image_tools_svg_to_png
Rasterize an SVG to crisp PNG or WebP at any set of sizes, with optional background and padding. For favicons, app icons, social images and engines that do not read SVG. Price: $0.01 USDC via x402, charged only on success. Part of Image tools: Everyday image work for sites and apps: convert and compress to WebP/AVIF/JPEG/PNG, responsive srcset sets with ready markup, colour palettes, pixel diffs for visual regression, SVG to PNG, QR codes, blur placeholders, and an inspection that says what to fix before shipping an image..
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "image_tools_svg_to_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | SVG markup as text. | |
| sizes | No | Output widths in pixels; height follows the SVG's aspect ratio. | |
| format | No | png | |
| svgUrl | No | ||
| padding | No | Empty margin as a share of the output size (0.1 = 10% on every side). | |
| background | No | Fill behind the drawing; transparent when omitted. |