開発者ツール
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
クイック操作
入力ファイル 1–50出力ファイル 1–50
入力
この Tool が受け付ける入力形式とファイル数です。
| 入力種類 | file |
|---|---|
| ファイル数 | 1 – 50 |
| 対応 MIME | image/jpeg, image/png, image/webp |
パラメータ
これらの値は request.options で渡します。
| パラメータ | 型 | 必須 | 既定値 | 許可値 / 範囲 | 説明 |
|---|---|---|---|---|---|
format |
enum | 任意 | webp |
jpg | png | webp | Output format. |
maxWidth |
integer | 任意 | 1920 |
1 – 10000 | Maximum width. |
quality |
number | 任意 | 0.85 |
0.5 – 1 | JPG/WebP quality. |
出力
処理完了後に返される結果形式です。
| 型 | files |
|---|---|
| ファイル数 | 1 – 50 |
| 出力 MIME | image/jpeg, image/png, image/webp |
| Metadata | count, format, maxWidth, quality |
| ZIP アーカイブ | 対応 · threshold 2 |
基本例
対応する統合モードを確認し、生成された開始コードをコピーできます。
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.