Ferramentas de imagem
Image Enhancer
image-enhancer
Use Image Enhancer through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Ações rápidas
Arquivos de entrada 1Arquivos de saída 1
Entrada
Formatos de entrada e quantidade de arquivos aceitos por esta Tool.
| Tipo de entrada | file |
|---|---|
| N.º de arquivos | 1 – 1 |
| MIME aceitos | image/jpeg, image/png, image/webp |
Parâmetros
Passe estes valores por request.options.
| Parâmetro | Tipo | Obrigatório | Padrão | Valores / Faixa | Descrição |
|---|---|---|---|---|---|
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. |
Saída
Formato do resultado retornado após o processamento.
| Tipo | files |
|---|---|
| N.º de arquivos | 1 – 1 |
| MIME de saída | image/jpeg, image/png, image/webp |
| Metadata | inputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise |
| Arquivo ZIP | Não suportado |
Uso básico
Escolha um modo suportado e copie o código inicial gerado.
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.