Outils image
Image Enhancer
image-enhancer
Use Image Enhancer through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Accès rapide
Fichiers d’entrée 1Fichiers de sortie 1
Entrée
Formats d’entrée et nombre de fichiers acceptés par cette Tool.
| Type d’entrée | file |
|---|---|
| Nombre de fichiers | 1 – 1 |
| MIME acceptés | image/jpeg, image/png, image/webp |
Paramètres
Transmettez ces valeurs via request.options.
| Paramètre | Type | Obligatoire | Par défaut | Valeurs / Plage | Description |
|---|---|---|---|---|---|
preset |
enum | Optionnel | balanced |
natural | balanced | vivid | Automatic enhancement strength. |
auto |
boolean | Optionnel | true |
— | Analyze the image and use automatic correction as the base settings. |
brightness |
number | Optionnel | — | -50 – 50 | Brightness adjustment. |
contrast |
number | Optionnel | — | -50 – 50 | Contrast adjustment. |
saturation |
number | Optionnel | — | -50 – 50 | Saturation adjustment. |
temperature |
number | Optionnel | — | -50 – 50 | Color temperature adjustment. |
highlights |
number | Optionnel | — | -50 – 50 | Highlight adjustment. |
shadows |
number | Optionnel | — | -50 – 50 | Shadow adjustment. |
sharpness |
number | Optionnel | — | 0 – 60 | Sharpness adjustment. |
denoise |
number | Optionnel | — | 0 – 60 | Noise reduction amount. |
format |
enum | Optionnel | jpg |
jpg | png | webp | Output image format. |
quality |
number | Optionnel | 0.92 |
0.6 – 1 | JPG/WebP output quality. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files |
|---|---|
| Nombre de fichiers | 1 – 1 |
| MIME de sortie | image/jpeg, image/png, image/webp |
| Metadata | inputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise |
| Archive ZIP | Non pris en charge |
Utilisation de base
Choisissez un mode pris en charge et copiez le code de démarrage généré.
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.