Todas las Tools›Remove Background Color
Herramientas de imagen

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
ID de Toolremove-background-color
Versión1
EjecuciónCLIENT
ModosHeadless, Interactive, Embedded

Acciones rápidas

Archivos de entrada 1Archivos de salida 1

Entrada

Formatos de entrada y número de archivos admitidos por esta Tool.

Tipo de entradafile
N.º de archivos1 – 1
MIME admitidosimage/jpeg, image/png, image/webp

Parámetros

Pasa estos valores mediante request.options.

Parámetro Tipo Obligatorio Predeterminado Valores / Rango Descripción
color string Opcional #ffffff — Solid background color as a 6-digit hex value.
tolerance number Opcional 28 0 – 100 Color tolerance from 0 to 100.
edgeConnected boolean Opcional true — Remove matching pixels only when connected to an outer image edge.

Salida

Formato del resultado devuelto al completar el procesamiento.

Tipofiles
N.º de archivos1 – 1
MIME de salidaimage/png
Metadatawidth, height, inputBytes, outputBytes
Archivo ZIPNo compatible

Uso básico

Elige un modo compatible y copia el código inicial generado.

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.