Alle Tools›Remove Background Color
Bild-Tools

Remove Background Color

remove-background-color

Use Remove Background Color through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessI · InteractiveE · Embedded
Tool-IDremove-background-color
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
color string Optional #ffffff — Solid background color as a 6-digit hex value.
tolerance number Optional 28 0 – 100 Color tolerance from 0 to 100.
edgeConnected boolean Optional true — Remove matching pixels only when connected to an outer image edge.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

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

Grundlegende Verwendung

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

Headless

const result = await client.run("remove-background-color", {
  file,
  options: { color: "#ffffff", tolerance: 28, edgeConnected: true }
});
console.log(result.files, result.data, result.metadata);

Interactive

await client.open({
  tool: "remove-background-color",
  input: { file },
  options: { color: "#ffffff", tolerance: 28, edgeConnected: true },
  onComplete(result) { console.log(result.files, result.data, result.metadata); }
});

Embedded

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