Todas as Tools›Favicon Generator
Ferramentas de ícones

Favicon Generator

favicon-generator

Use Favicon Generator through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessI · InteractiveE · Embedded
ID da Toolfavicon-generator
Versão1
ExecuçãoCLIENT
ModosHeadless, Interactive, Embedded

Ações rápidas

Arquivos de entrada 1Arquivos de saída 1–5

Entrada

Formatos de entrada e quantidade de arquivos aceitos por esta Tool.

Tipo de entradafile
N.º de arquivos1 – 1
MIME aceitosimage/jpeg, image/png, image/webp

Parâmetros

Passe estes valores por request.options.

Parâmetro Tipo Obrigatório Padrão Valores / Faixa Descrição
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.

Saída

Formato do resultado retornado após o processamento.

Tipofiles
N.º de arquivos1 – 5
MIME de saídaimage/png, image/x-icon
Metadatawidth, height, inputBytes, outputBytes, cropX, cropY, cropSize, outputCount
Arquivo ZIPSuportado · threshold 2

Uso básico

Escolha um modo suportado e copie o código inicial gerado.

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.