Nodes/ComfyUI_Isulion Random Prompt Generator/๐Ÿงฉ Isulion QRCode Generator
ComfyUI Node

๐Ÿงฉ Isulion QRCode Generator

Real, scannable QR codes generated locally โ€” no API, no key, no fuss

By IsulionยทCreated 2 years agoยทUpdated 9 days agoยท 41
๐Ÿงฉ Isulion QRCode Generator
  • logo
  • IMAGE
โ—„texthttps://civitai.com/user/Isulionโ–บ
โ—„error_correctionHโ–บ
โ—„scale10โ–บ
โ—„border4โ–บ
โ—„foreground_color#000000โ–บ
โ—„background_color#FFFFFFโ–บ
โ—„transparent_backgroundfalseโ–บ
โ—„logo_scale_percent23.0โ–บ
โ—„clear_behind_logotrueโ–บ

The name is a small lie, in a good way: ๐Ÿงฉ IsulionQRCode is a QR code generator that calls no API and needs no key. Type some text or a URL, and it hands you a real, scannable QR code as an IMAGE tensor, ready to stamp onto your generated pictures with the pack's Overlay node. It's one of the few things in the Isulion pack that isn't a prompt generator at all - it's a utility that just works.

If you've ever needed a scannable code on an AI image - a watermark with your handle, a link on a product shot, a code on a flyer - this is the local, dependency-free way to do it.

How it works

Under the hood it uses a bundled, pure-Python QR encoder (Nayuki's qrcodegen.py, shipped inside the pack - no pip installs). It encodes your text into a QR matrix at your chosen error-correction level, then draws it as an image with your colors and scale. The optional logo path resizes your logo image and composites it dead-center with alpha compositing. Everything is numpy and torch, both already in ComfyUI.

The inputs that matter

  • text - what the code contains. Defaults to the author's Civitai page, so change it. Multiline is on, but keep it short-ish: QR capacity is real.
  • error_correction - L, M, Q, or H (default H, the highest). More redundancy = bigger code but survives damage. If you're adding a logo, stay at H - the source code literally warns that low error correction plus a logo can break scannability.
  • scale (default 10) and border (default 4) - module size and quiet-zone width. Defaults are fine; border 4 is the spec minimum.
  • foreground_color / background_color - hex strings, defaults black on white.
  • transparent_background - makes the background transparent (RGBA output) instead of your background color.
  • logo (optional IMAGE), logo_scale_percent (default 23), clear_behind_logo (default true) - drop any image in and it gets centered on the code.

Output

A single IMAGE (RGB, or RGBA if transparent background is on) - the finished QR code.

Installing it

One pack, all Isulion nodes:

  1. ComfyUI Manager โ†’ Custom Nodes Manager โ†’ search Isulion โ†’ Install โ†’ Restart.
  2. Or clone it manually:
cd "your_ComfyUI_install_dir/custom_nodes"
git clone https://github.com/Isulion/ComfyUI_Isulion

No requirements.txt, no models, no keys. The QR encoder is bundled in the pack.

Common issues

Three gotchas. First, transparency: if you turn on transparent background, ComfyUI's in-canvas preview often won't show the alpha, and the node itself notes it. Save as PNG with a SaveImage node and verify there - and remember that previewing on a white canvas hides transparent codes entirely. Second, text length: QR codes have hard capacity limits, and the node returns a blank placeholder image if your text is too long to encode at the chosen error-correction level. Short URLs are fine; a paragraph is not - lower the error correction if you must pack more in. Third, logo scannability: keep the logo under about a third of the code (the default 23% is sane) and leave error correction at H. A code that looks perfect but won't scan is worse than no code.

Categoryimage

Inputs (10)

NameTypeDefaultDescription
textSTRINGhttps://civitai.com/user/Isulionโ€”
error_correctionCOMBOH4 options: L, M, Q, H
scaleINT101โ€“100โ€”
borderINT40โ€“40โ€”
foreground_colorSTRING#000000โ€”
background_colorSTRING#FFFFFFโ€”
transparent_backgroundBOOLEANfalseโ€”
logooptIMAGEโ€”
logo_scale_percentoptFLOAT23.05โ€“33โ€”
clear_behind_logooptBOOLEANtrueโ€”

Outputs (1)

NameTypeDescription
IMAGEIMAGEโ€”