Alle Tools›Image Enhancer
Bild-Tools

Image Enhancer

image-enhancer

Use Image Enhancer through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessI · InteractiveE · Embedded
Tool-IDimage-enhancer
Version1
AusführungCLIENT
ModiHeadless, Interactive, Embedded

Schnellzugriff

Eingabedateien 1Ausgabedateien 1

Eingabe

Zulässige Eingabeformate und Dateianzahl für dieses Tool.

Eingabetypfile
Dateianzahl1 – 1
Zulässige MIME-Typenimage/jpeg, image/png, image/webp

Parameter

Diese Werte über request.options übergeben.

Parameter Typ Erforderlich Standard Zulässig / Bereich Beschreibung
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.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

Typfiles
Dateianzahl1 – 1
Ausgabe-MIMEimage/jpeg, image/png, image/webp
MetadatainputBytes, outputBytes, preset, auto, brightness, contrast, saturation, temperature, highlights, shadows, sharpness, denoise
ZIP-ArchivNicht unterstützt

Grundlegende Verwendung

Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.

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.