convert_image
Convert image files between formats including PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, and AVIF. Specify target format, quality settings, and output location for format compatibility.
Instructions
Convert an image to a different format.
Supported formats: PNG, JPEG, WebP, GIF, BMP, TIFF, ICO, AVIF.
Args: path: Absolute path to the image file. format: Target format (e.g. 'png', 'webp', 'jpeg'). output_path: Where to save. Defaults to .<new_ext> next to input. quality: Quality for lossy formats (1-100). Default 85.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | Yes | ||
| output_path | No | ||
| quality | No |