convert_format
Convert images to PNG, JPG, or WebP format, including SVG rasterization to PNG, using local processing.
Instructions
Convert an image between formats: PNG, JPG, WebP, or SVG to PNG. Works locally with Pillow. Note: SVG input is rasterized to PNG via cairosvg if available, otherwise Pillow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_path | Yes | Path to the input image file | |
| output_path | No | Path to save the output image (optional, auto-generated if omitted) | |
| output_format | Yes | Target format |