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.
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. |