Outils développeur
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
Accès rapide
Fichiers d’entrée 1–50Fichiers de sortie 1–50
Entrée
Formats d’entrée et nombre de fichiers acceptés par cette Tool.
| Type d’entrée | file |
|---|---|
| Nombre de fichiers | 1 – 50 |
| MIME acceptés | image/jpeg, image/png, image/webp |
Paramètres
Transmettez ces valeurs via request.options.
| Paramètre | Type | Obligatoire | Par défaut | Valeurs / Plage | Description |
|---|---|---|---|---|---|
format |
enum | Optionnel | webp |
jpg | png | webp | Output format. |
maxWidth |
integer | Optionnel | 1920 |
1 – 10000 | Maximum width. |
quality |
number | Optionnel | 0.85 |
0.5 – 1 | JPG/WebP quality. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files |
|---|---|
| Nombre de fichiers | 1 – 50 |
| MIME de sortie | image/jpeg, image/png, image/webp |
| Metadata | count, format, maxWidth, quality |
| Archive ZIP | Pris en charge · threshold 2 |
Utilisation de base
Choisissez un mode pris en charge et copiez le code de démarrage généré.
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.