Developer Tools
Batch Image Processor
batch-image-processor
Use Batch Image Processor through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 1–50Output files 1–50
Input
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 50 |
| Accepted MIME types | image/jpeg, image/png, image/webp |
Parameters
Pass these values through request.options.
| Parameter | Type | Required | Default | Allowed / Range | Description |
|---|---|---|---|---|---|
format |
enum | Optional | webp |
jpg | png | webp | Output format. |
maxWidth |
integer | Optional | 1920 |
1 – 10000 | Maximum width. |
quality |
number | Optional | 0.85 |
0.5 – 1 | JPG/WebP quality. |
Output
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 50 |
| MIME types | image/jpeg, image/png, image/webp |
| Metadata | count, format, maxWidth, quality |
| ZIP archive | Yes · threshold 2 |
Basic usage
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("batch-image-processor", {
files: selectedFiles,
options: { format: "webp", maxWidth: 1920, quality: 0.85 }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "batch-image-processor", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.