Alle Tools›Mosaic / Blur Image
Bild-Tools

Mosaic / Blur Image

mosaic-blur-image

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

H · HeadlessI · InteractiveE · Embedded
Tool-IDmosaic-blur-image
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
defaultEffect enum Optional mosaic mosaic | blur Default effect for regions that do not specify their own effect.
defaultStrength number Optional 18 4 – 40 Default effect strength from 4 to 40.
format enum Optional jpg jpg | png Output image format.
quality number Optional 0.92 0.6 – 1 JPG output quality from 0.6 to 1.0.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

Typfiles
Dateianzahl1 – 1
Ausgabe-MIMEimage/jpeg, image/png
Metadatawidth, height, inputBytes, outputBytes, regionCount
ZIP-ArchivNicht unterstützt

Grundlegende Verwendung

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

Headless

const result = await client.run("mosaic-blur-image", {
  file,
  options: { defaultEffect: "mosaic", defaultStrength: 18, format: "jpg", quality: 0.92 }
});
console.log(result.files, result.data, result.metadata);

Interactive

await client.open({
  tool: "mosaic-blur-image",
  input: { file },
  options: { defaultEffect: "mosaic", defaultStrength: 18, format: "jpg", quality: 0.92 },
  onComplete(result) { console.log(result.files, result.data, result.metadata); }
});

Embedded

await client.mount({ tool: "mosaic-blur-image", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.