360 Secure SkillHub
360 安全技能中心

Local QR Code Generator

该 Skill 使用 qrcode 与 Pillow 库在本地将文本或 URL 转换为二维码。提供两个脚本:一个输出 PNG 图片文件,另一个在终端显示 ASCII 图案,并支持调整 box size 和 border 大小。全过程无需外部 API 或密钥。

alone86136
alone86136
热度 47.47
最近更新 2026-05-11 17:35:43
分类:效率依赖:代码执行 / 读写文件应用场景:图像生成 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add local-qrcode
Metadata
name
local-qrcode
description
Generate QR codes locally from text/URL to PNG image or ASCII art. Pure local generation using qrcode library. No API key required. Use when users need to create QR codes for links, text, or any content.

local-qrcode

Overview

A simple skill for generating QR codes locally. Convert any text or URL to a QR code image (PNG) or display as ASCII art in terminal. Everything runs locally, no external API calls needed.

Features

  • Generate PNG QR code: Save QR code as PNG image file
  • ASCII QR output: Display QR code directly in terminal as ASCII art
  • Customizable: Adjust box size and border size for output

Dependencies

Requires qrcode and Pillow Python packages:

pip install qrcode pillow

Usage

Generate PNG QR code

python3 scripts/generate_png.py "https://example.com" output.png

Generate ASCII QR code

python3 scripts/generate_ascii.py "Hello World"

Custom size

python3 scripts/generate_png.py --box-size 10 --border 4 "content" output.png

Resources

scripts/

  • generate_png.py - Generate QR code as PNG image file
  • generate_ascii.py - Generate QR code as ASCII art for terminal output