Công cụ hình ảnh
Tăng chất lượng ảnh
image-enhancer
Use Image Enhancer through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Quick actions
Input files 1Output files 1
Đầu vào
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | image/jpeg, image/png, image/webp |
Tham số
Pass these values through request.options.
| Parameter | Type | Bắt buộc | Mặc định | Giá trị / Phạm vi | Mô tả |
|---|---|---|---|---|---|
preset |
enum | Optional | balanced |
natural | balanced | vivid | Automatic enhancement strength. |
auto |
boolean | Optional | true |
— | Analyze the image and use automatic correction as the base settings. |
brightness |
number | Optional | — | -50 – 50 | Brightness adjustment. |
contrast |
number | Optional | — | -50 – 50 | Contrast adjustment. |
saturation |
number | Optional | — | -50 – 50 | Saturation adjustment. |
temperature |
number | Optional | — | -50 – 50 | Color temperature adjustment. |
highlights |
number | Optional | — | -50 – 50 | Highlight adjustment. |
shadows |
number | Optional | — | -50 – 50 | Shadow adjustment. |
sharpness |
number | Optional | — | 0 – 60 | Sharpness adjustment. |
denoise |
number | Optional | — | 0 – 60 | Noise reduction amount. |
format |
enum | Optional | jpg |
jpg | png | webp | Output image format. |
quality |
number | Optional | 0.92 |
0.6 – 1 | JPG/WebP output quality. |
Đầu ra
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 1 |
| MIME types | image/jpeg, image/png, image/webp |
| Metadata | inputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise |
| ZIP archive | No |
Ví dụ cơ bản
Choose a supported integration mode and copy the generated starter code.
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.