すべての Tool›QR Code Generator
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 · HeadlessE · Embedded
Tool IDqr-code-generator
バージョン1
実行方式CLIENT
対応モードHeadless, Embedded

クイック操作

入力ファイル 0出力ファイル 1–2

入力

この Tool が受け付ける入力形式とファイル数です。

入力種類data
ファイル数0 – 0
対応 MIMEなし

パラメータ

これらの値は request.options で渡します。

パラメータ 型 必須 既定値 許可値 / 範囲 説明
content string 必須 — — URL, text, phone number or other QR content.
size integer 任意 512 96 – 4096 Output QR width and height in pixels.
ecc enum 任意 M L | M | Q | H QR error correction level. A center logo forces H.
foreground string 任意 #000000 — QR foreground color as #RRGGBB.
background string 任意 #ffffff — QR background color as #RRGGBB.
format enum 任意 png png | svg | both Output PNG, SVG or both files.

出力

処理完了後に返される結果形式です。

型files
ファイル数1 – 2
出力 MIMEimage/png, image/svg+xml
Metadatasize, ecc, moduleCount, hasLogo, outputBytes
ZIP アーカイブ非対応

基本例

対応する統合モードを確認し、生成された開始コードをコピーできます。

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.