Embed a QR code in art Scannable QR code
Make a piece of artwork that a phone camera still reads as a QR code.
The same tutorial, three subjects
Prompt
1 · What to write in the prompt
The ControlNet already carries the code, so the prompt does not have to draw it. What it has to supply is light against dark in the places the code needs it.This example asked for: The negative prompt was:ragged dark storm cloud tearing across a bright dawn sky far below a skyharbor, torn vapour and shafts of light, ethereal, dreamlike, flowing, painterly, luminous, incredible detailPrompts that describe blocks and hard shadows compete with the code, and come back looking like a barcode with a picture behind it.worst quality, bad lighting, deformed, ugly, low contrastWorkflows
2 · Type in what the code should say
The Workflows card has . Type the text or URL you want the code to carry into it; this example used https://aihorde.net.Filling that field is what puts the request onto the QR workflow, so leaving it empty gets you an ordinary picture. Model & style
3 · Pick a model that can run it
This example used AlbedoBase XL (SDXL).The QR workflow is served for Stable Diffusion 1.5 and SDXL models. Pick anything else and the panel says so, and the QR field is disabled. Size
4 · Set a large size
1024×1024.Drawn small, the code has fewer pixels per square, and it stops scanning long before it starts looking wrong to you. Sampling
5 · Use the settings that were scan-tested
These four go together. 7.5, 25 , k_euler and the normal with Karras off are the set that was checked against a phone camera, and a code made with three of them does not read.How hard the code is held onto the picture is . This recipe sends 1, which is also what a worker uses when nothing is sent, so the examples were made at the workflow's own default. Sampling · Interactive explorer Guidance (CFG) How strongly the model is pushed to follow your prompt.
Guidance 7 
Guidance 20 These pictures come from a plain scene, not from this QR request. They show how guidance behaves in general, and a code follows the same curve.
6 · Send it, then scan it
Press Generate, and point a phone at the result before you trust it.When a code does not scan, the usual causes are, in order: This run took about 38 seconds and cost 78 kudos.- something geometric in the prompt (a skyline, a building, a garden) taking the pixels the code needs
- a model that draws flat areas and smooths the code away
- plain luck with the seed
Where next
You can now make artwork that still scans. The last technique blends a picture with a few reference pictures, instead of repainting or tracing it. It runs only on Stable Cascade models, and few workers carry those, so you may have to read it on a day you cannot run it.