画像ツール
Image Enhancer
image-enhancer
Use Image Enhancer 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 で渡します。
| パラメータ | 型 | 必須 | 既定値 | 許可値 / 範囲 | 説明 |
|---|---|---|---|---|---|
preset |
enum | 任意 | balanced |
natural | balanced | vivid | Automatic enhancement strength. |
auto |
boolean | 任意 | true |
— | Analyze the image and use automatic correction as the base settings. |
brightness |
number | 任意 | — | -50 – 50 | Brightness adjustment. |
contrast |
number | 任意 | — | -50 – 50 | Contrast adjustment. |
saturation |
number | 任意 | — | -50 – 50 | Saturation adjustment. |
temperature |
number | 任意 | — | -50 – 50 | Color temperature adjustment. |
highlights |
number | 任意 | — | -50 – 50 | Highlight adjustment. |
shadows |
number | 任意 | — | -50 – 50 | Shadow adjustment. |
sharpness |
number | 任意 | — | 0 – 60 | Sharpness adjustment. |
denoise |
number | 任意 | — | 0 – 60 | Noise reduction amount. |
format |
enum | 任意 | jpg |
jpg | png | webp | Output image format. |
quality |
number | 任意 | 0.92 |
0.6 – 1 | JPG/WebP output quality. |
出力
処理完了後に返される結果形式です。
| 型 | files |
|---|---|
| ファイル数 | 1 – 1 |
| 出力 MIME | image/jpeg, image/png, image/webp |
| Metadata | inputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise |
| ZIP アーカイブ | 非対応 |
基本例
対応する統合モードを確認し、生成された開始コードをコピーできます。
Headless
const result = await client.run("image-enhancer", {
file,
options: { preset: "balanced", auto: true }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "image-enhancer",
input: { file },
options: { preset: "balanced", auto: true },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "image-enhancer", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.