generate-qrcode-svg
Generate QR codes in SVG format from text or URLs with customizable options including error correction, colors, size, and margins for versatile integration needs.
Instructions
Generate a QR code from text or URL and return it as SVG format
Input Schema
Name | Required | Description | Default |
---|---|---|---|
options | No | QR code generation options | |
text | Yes | The text or URL to encode in the QR code |
Input Schema (JSON Schema)
{
"properties": {
"options": {
"additionalProperties": false,
"description": "QR code generation options",
"properties": {
"color": {
"additionalProperties": false,
"properties": {
"dark": {
"default": "#000000",
"type": "string"
},
"light": {
"default": "#FFFFFF",
"type": "string"
}
},
"type": "object"
},
"errorCorrectionLevel": {
"default": "M",
"enum": [
"L",
"M",
"Q",
"H"
],
"type": "string"
},
"margin": {
"default": 4,
"maximum": 10,
"minimum": 0,
"type": "number"
},
"width": {
"maximum": 2000,
"minimum": 50,
"type": "number"
}
},
"type": "object"
},
"text": {
"description": "The text or URL to encode in the QR code",
"minLength": 1,
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
}