photo_svg_to_png
SVG to PNG — Rasterize an SVG vector file to PNG (or JPG/WebP) at a chosen resolution, DPI, and background color. [category: photo]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dpi | No | String, not a number — only '72', '96', '144', '300'; anything else silently becomes '96'. | 96 |
| file | Yes | SVG file (max 25MB) | |
| width | No | Output width in px. 0 (default) = render at the SVG's intrinsic size. | |
| height | No | Output height in px. 0 = intrinsic. | |
| bg_color | No | 'transparent', 'white', or a hex color. | transparent |
| output_format | No | jpg cannot hold transparency: without an explicit bg_color the artwork is flattened onto white, never black. | png |