Outils QR
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
Accès rapide
Fichiers d’entrée 0Fichiers de sortie 1–2
Entrée
Formats d’entrée et nombre de fichiers acceptés par cette Tool.
| Type d’entrée | data |
|---|---|
| Nombre de fichiers | 0 – 0 |
| MIME acceptés | Aucun |
Paramètres
Transmettez ces valeurs via request.options.
| Paramètre | Type | Obligatoire | Par défaut | Valeurs / Plage | Description |
|---|---|---|---|---|---|
content |
string | Obligatoire | — | — | URL, text, phone number or other QR content. |
size |
integer | Optionnel | 512 |
96 – 4096 | Output QR width and height in pixels. |
ecc |
enum | Optionnel | M |
L | M | Q | H | QR error correction level. A center logo forces H. |
foreground |
string | Optionnel | #000000 |
— | QR foreground color as #RRGGBB. |
background |
string | Optionnel | #ffffff |
— | QR background color as #RRGGBB. |
format |
enum | Optionnel | png |
png | svg | both | Output PNG, SVG or both files. |
Sortie
Format du résultat renvoyé après traitement.
| Type | files |
|---|---|
| Nombre de fichiers | 1 – 2 |
| MIME de sortie | image/png, image/svg+xml |
| Metadata | size, ecc, moduleCount, hasLogo, outputBytes |
| Archive ZIP | Non pris en charge |
Utilisation de base
Choisissez un mode pris en charge et copiez le code de démarrage généré.
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.