AI generators can restyle a QR code with colours, rounded modules and a logo in the middle, and each of those changes can break scanning. A QR code is a pattern designed for optical scanners, and the ZXing wiki documents that the usual payloads are URLs, mailto links, telephone numbers, SMS and Wi-Fi configuration, with URLs needing the full https prefix. A stylised code must still be read by a real scanner, so test it on real phones before it is printed.
What you need
- The stylised QR code image
- The exact URL or payload it should encode
- Two different phones with camera scanners
Step 1: Scan the code with two different phones
Open the camera app on two different phones and point each at the code. Note whether each phone recognises the code, and what URL or payload it offers to open.
Step 2: Check the payload matches the intended one
Confirm the payload each phone reads is exactly the intended URL or text, including the https prefix. A code that opens the wrong page is worse than one that does not scan at all.
Step 3: Restore contrast and margin if it fails
If a phone fails to scan, increase the contrast between the modules and the background, remove the logo from the centre, or enlarge the quiet zone around the code, then scan again. Do not print a code that only scans on one phone.
Worked example: synthetic scan check of one stylised QR code
The table below is a synthetic example. It shows the expected result of scanning one stylised code; no code was printed.
| Test | Phone A | Phone B | Verdict |
|---|---|---|---|
| Original code | Scans | Scans | Pass |
| With logo in centre | Scans | Fails | Fail |
| After logo removed | Scans | Scans | Pass |
| Low contrast version | Slow | Fails | Fail |
Expected result (UNTESTED). the original code passes, the logo version fails on one phone, and the low-contrast version fails, so the code must be printed without a centre logo and with full contrast. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A code that scans on a screen can fail in print if the print is too small or too low contrast, so test the printed size too.
- A logo in the centre of a QR code removes data modules, so keep the logo small or leave it out.
- Low contrast between the modules and the background is the most common cause of a failed scan.
- A scanner that opens a URL does not prove the page is correct; check the destination page separately.
