Rasterize a local SVG
abox_svg_to_imageConvert a local self-contained SVG into PNG, JPEG, or WebP, with size, fit, transparency, and background controls, while refusing active content, animation, and external resources.
Instructions
Render a local static self-contained SVG into PNG, JPEG or WebP using the existing abox.tools sizing and codecs. Refuses active content, animation and external resources. Supports intrinsic dimensions or a requested box, transparency and JPEG background. Writes and verifies a new raster image. Installed fonts can affect appearance.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "abox_svg_to_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | fit | |
| width | No | ||
| format | No | png | |
| height | No | ||
| quality | No | ||
| background | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |