Herramientas de imagen
Transparent Image Splitter
transparent-image-splitter
Use Transparent Image Splitter through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · HeadlessI · Interactive
Acciones rápidas
Archivos de entrada 1Archivos de salida 1–999
Entrada
Formatos de entrada y número de archivos admitidos por esta Tool.
| Tipo de entrada | file |
|---|---|
| N.º de archivos | 1 – 1 |
| MIME admitidos | image/png, image/webp |
Parámetros
Pasa estos valores mediante request.options.
| Parámetro | Tipo | Obligatorio | Predeterminado | Valores / Rango | Descripción |
|---|---|---|---|---|---|
alphaThreshold |
integer | Opcional | 8 |
0 – 80 | Pixels with alpha at or below this value are treated as transparent. |
minAreaPercent |
number | Opcional | 0.2 |
0.01 – 3 | Minimum detected object area as a percentage of total image area. |
mergeDistance |
integer | Opcional | 18 |
0 – 80 | Merge nearby detected components within this many pixels. |
padding |
integer | Opcional | 8 |
0 – 64 | Transparent padding around each extracted object in pixels. |
normalize |
boolean | Opcional | false |
— | Place every extracted object on the same transparent canvas size. |
resizeLongSide |
integer | Opcional | 0 |
0 – 8192 | Maximum long side for each extracted object. 0 keeps original size. |
Salida
Formato del resultado devuelto al completar el procesamiento.
| Tipo | files |
|---|---|
| N.º de archivos | 1 – 999 |
| MIME de salida | image/png |
| Metadata | width, height, inputBytes, outputBytes, objectCount |
| Archivo ZIP | Compatible · threshold 2 |
Uso básico
Elige un modo compatible y copia el código inicial generado.
Headless
const result = await client.run("transparent-image-splitter", {
file,
options: { alphaThreshold: 8, minAreaPercent: 0.2, mergeDistance: 18, padding: 8 }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "transparent-image-splitter",
input: { file },
options: { alphaThreshold: 8, minAreaPercent: 0.2, mergeDistance: 18, padding: 8 },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "transparent-image-splitter", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.