QR-Tools
QR Code Generator
qr-code-generator
Use QR Code Generator through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Schnellzugriff
Eingabedateien 0Ausgabedateien 1–2
Eingabe
Zulässige Eingabeformate und Dateianzahl für dieses Tool.
| Eingabetyp | data |
|---|---|
| Dateianzahl | 0 – 0 |
| Zulässige MIME-Typen | Keine |
Parameter
Diese Werte über request.options übergeben.
| Parameter | Typ | Erforderlich | Standard | Zulässig / Bereich | Beschreibung |
|---|---|---|---|---|---|
content |
string | Erforderlich | — | — | URL, text, phone number or other QR content. |
size |
integer | Optional | 512 |
96 – 4096 | Output QR width and height in pixels. |
ecc |
enum | Optional | M |
L | M | Q | H | QR error correction level. A center logo forces H. |
foreground |
string | Optional | #000000 |
— | QR foreground color as #RRGGBB. |
background |
string | Optional | #ffffff |
— | QR background color as #RRGGBB. |
format |
enum | Optional | png |
png | svg | both | Output PNG, SVG or both files. |
Ausgabe
Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.
| Typ | files |
|---|---|
| Dateianzahl | 1 – 2 |
| Ausgabe-MIME | image/png, image/svg+xml |
| Metadata | size, ecc, moduleCount, hasLogo, outputBytes |
| ZIP-Archiv | Nicht unterstützt |
Grundlegende Verwendung
Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.
Headless
const result = await client.run("qr-code-generator", {
options: { content: "value", size: 512, ecc: "M", foreground: "#000000" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "qr-code-generator", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.