Entwickler-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
Schnellzugriff
Eingabedateien 1–50Ausgabedateien 1–50
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | file |
|---|---|
| Dateianzahl | 1 – 50 |
| Zulässige MIME-Typen | image/jpeg, image/png, image/webp |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
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. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files |
|---|---|
| Dateianzahl | 1 – 50 |
| Ausgabe-MIME | image/jpeg, image/png, image/webp |
| Metadata | count, format, maxWidth, quality |
| ZIP-Archiv | Unterstützt · threshold 2 |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
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.