画像ツール
Mosaic / Blur Image
mosaic-blur-image
Use Mosaic / Blur Image through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
クイック操作
入力ファイル 1出力ファイル 1
入力
この Tool が受け付ける入力形式とファイル数です。
| 入力種類 | file |
|---|---|
| ファイル数 | 1 – 1 |
| 対応 MIME | image/jpeg, image/png, image/webp |
パラメータ
これらの値は request.options で渡します。
| パラメータ | 型 | 必須 | 既定値 | 許可値 / 範囲 | 説明 |
|---|---|---|---|---|---|
defaultEffect |
enum | 任意 | mosaic |
mosaic | blur | Default effect for regions that do not specify their own effect. |
defaultStrength |
number | 任意 | 18 |
4 – 40 | Default effect strength from 4 to 40. |
format |
enum | 任意 | jpg |
jpg | png | Output image format. |
quality |
number | 任意 | 0.92 |
0.6 – 1 | JPG output quality from 0.6 to 1.0. |
出力
処理完了後に返される結果形式です。
| 型 | files |
|---|---|
| ファイル数 | 1 – 1 |
| 出力 MIME | image/jpeg, image/png |
| Metadata | width, height, inputBytes, outputBytes, regionCount |
| ZIP アーカイブ | 非対応 |
基本例
対応する統合モードを確認し、生成された開始コードをコピーできます。
Headless
const result = await client.run("mosaic-blur-image", {
file,
options: { defaultEffect: "mosaic", defaultStrength: 18, format: "jpg", quality: 0.92 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "mosaic-blur-image",
input: { file },
options: { defaultEffect: "mosaic", defaultStrength: 18, format: "jpg", quality: 0.92 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "mosaic-blur-image", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.