convert_svg
Convert SVG files to PNG, JPEG, or WebP at specified dimensions. Supports multiple output sizes in one call.
Instructions
Converts an SVG file to PNG, JPEG, or WebP at the specified dimensions. Supports multiple output sizes in a single call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | Yes | Output width in pixels | |
| format | No | Output file format (default: png) | png |
| height | No | Output height in pixels. Omit to scale proportionally from width. | |
| quality | No | Compression quality for jpeg/webp only (1 = lowest, 100 = highest, default: 95) | |
| input_svg | Yes | Absolute path to the source SVG file | |
| output_path | Yes | Absolute path of the output file, including name and extension (e.g. /path/result.png) | |
| background_color | No | Background color in hex (e.g. #ffffff). Omit for transparent (only works with png). |