Herramientas de iconos
Favicon Generator
favicon-generator
Use Favicon Generator 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–5
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/jpeg, image/png, image/webp |
Parámetros
Pasa estos valores mediante request.options.
| Parámetro | Tipo | Obligatorio | Predeterminado | Valores / Rango | Descripción |
|---|---|---|---|---|---|
cropX |
integer | Opcional | — | 0 – 32768 | Optional source crop X coordinate. Omit to center the crop. |
cropY |
integer | Opcional | — | 0 – 32768 | Optional source crop Y coordinate. Omit to center the crop. |
cropSize |
integer | Opcional | — | 1 – 32768 | Optional square crop size in source pixels. Omit to use the largest centered square. |
transparent |
boolean | Opcional | true |
— | Keep transparent pixels in generated PNG favicons. |
color |
string | Opcional | #ffffff |
— | Background color used when transparent is false. |
includeIco |
boolean | Opcional | true |
— | Also return favicon.ico built from available 16, 32 and 48 pixel PNG assets. |
Salida
Formato del resultado devuelto al completar el procesamiento.
| Tipo | files |
|---|---|
| N.º de archivos | 1 – 5 |
| MIME de salida | image/png, image/x-icon |
| Metadata | width, height, inputBytes, outputBytes, cropX, cropY, cropSize, outputCount |
| 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("favicon-generator", {
file,
options: { transparent: true }
});
console.log(result.files, result.data, result.metadata);
Interactive
await client.open({
tool: "favicon-generator",
input: { file },
options: { transparent: true },
onComplete(result) { console.log(result.files, result.data, result.metadata); }
});
Embedded
await client.mount({ tool: "favicon-generator", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.