2.5k
GitHub Stars
3
Bundled Files
2 months ago
Catalog Refreshed
3 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill qr-code-generator-skill- _meta.json295 B
- README.md627 B
- SKILL.md1.1 KB
Overview
This skill generates high-resolution QR code PNG images from arbitrary text or URLs using Python. It uses the qrcode library with Pillow to produce configurable size and border. By default it saves qrcode.png in the current working directory unless a different filename or path is provided. It includes basic error handling to install missing dependencies when needed.
How this skill works
When requested, the skill runs a short Python command that constructs a qrcode.QRCode object, adds the provided text or URL, renders the image, and saves it as a PNG file. It uses parameters like version, box_size, and border to control resolution and scannability. If the qrcode package is not available, it attempts to install qrcode[pil] before generating the image. Filenames default to qrcode.png but can be overridden with a full path.
When to use it
- Generate printable QR codes for posters, business cards, or packaging.
- Create QR codes for quick sharing of URLs or contact information.
- Produce image assets for embedding in reports, emails, or web pages.
- Automate QR creation in scripts, CI jobs, or bulk workflows that need offline storage.
- Backup or archive QR images alongside other generated assets.
Best practices
- Provide full URLs (including https://) to avoid redirect or scan issues.
- Specify an appropriate box_size and border for the intended print or screen size (larger for print).
- Use meaningful filenames and directories to avoid overwriting existing files.
- Validate output by scanning the generated PNG with a smartphone app before distribution.
- Run dependency installation in a controlled environment (virtualenv) to avoid system package conflicts.
Example use cases
- Generate a QR for a product landing page and save as product_qr.png for packaging artwork.
- Create QR codes in a script loop to batch-export event tickets as individual PNG files.
- Integrate into a CI step to produce QR images for release notes or documentation snapshots.
- Quickly produce a contact vCard QR image for printing on business cards.
FAQ
The skill will attempt pip install qrcode[pil]. If that fails, install qrcode and Pillow manually in your environment and retry.
How do I change image resolution or size?
Adjust the box_size and border parameters in the Python command to increase or decrease pixel size and quiet zone; higher box_size yields higher-resolution PNGs.