Herramientas de imagen
Image Enhancer
image-enhancer
Use Image Enhancer through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Acciones rápidas
Archivos de entrada 1Archivos de salida 1
Entrada
Formatos de entrada y número de archivos admitidos por esta Tool.
| Tipo de entrada | file |
|---|---|
| N.º de archivos | 1 – 1 |
| MIME admitidos | image/jpeg, image/png, image/webp |
Parámetros
Pasa estos valores mediante request.options.
| Parámetro | Tipo | Obligatorio | Predeterminado | Valores / Rango | Descripción |
|---|---|---|---|---|---|
preset |
enum | Opcional | balanced |
natural | balanced | vivid | Automatic enhancement strength. |
auto |
boolean | Opcional | true |
— | Analyze the image and use automatic correction as the base settings. |
brightness |
number | Opcional | — | -50 – 50 | Brightness adjustment. |
contrast |
number | Opcional | — | -50 – 50 | Contrast adjustment. |
saturation |
number | Opcional | — | -50 – 50 | Saturation adjustment. |
temperature |
number | Opcional | — | -50 – 50 | Color temperature adjustment. |
highlights |
number | Opcional | — | -50 – 50 | Highlight adjustment. |
shadows |
number | Opcional | — | -50 – 50 | Shadow adjustment. |
sharpness |
number | Opcional | — | 0 – 60 | Sharpness adjustment. |
denoise |
number | Opcional | — | 0 – 60 | Noise reduction amount. |
format |
enum | Opcional | jpg |
jpg | png | webp | Output image format. |
quality |
number | Opcional | 0.92 |
0.6 – 1 | JPG/WebP output quality. |
Salida
Formato del resultado devuelto al completar el procesamiento.
| Tipo | files |
|---|---|
| N.º de archivos | 1 – 1 |
| MIME de salida | image/jpeg, image/png, image/webp |
| Metadata | inputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise |
| Archivo ZIP | No compatible |
Uso básico
Elige un modo compatible y copia el código inicial generado.
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.