360 Secure SkillHub
360 安全技能中心

Local QR Code Generator

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

分类:效率
alone86136
alone86136
热度 35.05
最近更新 2026-05-11 17:35:43

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add alone86136/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