Urgent.News

What's breaking now, across thousands of outlets.

Tech

My QR codes scanned in preview and failed on paper — the quiet zone isn't decoration

The QR Generator API was supposed to be the boring one in my toolkit: POST a string, get an image back. No parsers, no pagination, no file formats. It turned out to have the most physical-world failure mode of anything I run. A few weeks after I packaged it ( https://x402.freeq.one/tools/qr_generator.html ), an agent building conference tickets embedded my QR codes straight into a PDF layout —…

A QR Generator API, initially perceived as simple and functional, turned out to have a surprising physical-world limitation. An agent responsible for conference ticket creation mistakenly embedded QR codes directly into a PDF layout, resulting in the codes becoming almost invisible to mobile devices. The problem lay in the "quiet zone," a mandatory four-module empty margin surrounding the QR code, as specified in the QR standard ISO/IEC 18004.

This margin serves as a crucial border for scanners to detect the edges of the code and initiate data reading. Without this margin, scanners struggled to identify the code, especially when the QR code was placed flush against other dark artwork. This oversight occurred because the API outputted the exact pixel matrix, including the quiet zone, which worked well in an HTML preview but failed when printed on paper.

Testing with different margin settings revealed that a complete four-module margin resulted in a 50% success rate, while other settings fell short. The updated API now defaults to a four-module margin, and the documentation clarifies that the margin is a necessary part of the symbol, not a stylistic choice. This incident highlights the importance of considering physical limitations when designing digital elements meant for real-world application.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Security Audit Report: Reentrancy & Access Control Review: Binance staked ETH

Security Audit Report: Reentrancy & Access Control Review: Binance staked ETH Target Protocol : Binance staked ETH (TVL: $9586.9M) Security Audit Report – Reentrancy & Access‑Control Review Protocol…

  • No reentrancy vulnerabilities found in ERC-20 functions
  • Cross-chain callback in RedemptionRouter contract poses medium severity reentrancy risk
  • Admin role controlled by single Ethereum address with high impact vulnerabilities

What’s your take on Upwork in fall 2026?

Developers, what’s your take on Upwork in fall 2026? Are you finding solid projects at reasonable rates? Is it worth joining as an experienced engineer with no track record on the platform?

More from Wednesday 7 October →