Alle Tools›Favicon Generator
Icon-Tools

Favicon Generator

favicon-generator

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

H · HeadlessI · InteractiveE · Embedded
Tool-IDfavicon-generator
Version1
AusführungCLIENT
ModiHeadless, Interactive, Embedded

Schnellzugriff

Eingabedateien 1Ausgabedateien 1–5

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
cropX integer Optional — 0 – 32768 Optional source crop X coordinate. Omit to center the crop.
cropY integer Optional — 0 – 32768 Optional source crop Y coordinate. Omit to center the crop.
cropSize integer Optional — 1 – 32768 Optional square crop size in source pixels. Omit to use the largest centered square.
transparent boolean Optional true — Keep transparent pixels in generated PNG favicons.
color string Optional #ffffff — Background color used when transparent is false.
includeIco boolean Optional true — Also return favicon.ico built from available 16, 32 and 48 pixel PNG assets.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

Typfiles
Dateianzahl1 – 5
Ausgabe-MIMEimage/png, image/x-icon
Metadatawidth, height, inputBytes, outputBytes, cropX, cropY, cropSize, outputCount
ZIP-ArchivUnterstützt · threshold 2

Grundlegende Verwendung

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

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.