🎨 Styled QR Code Generator
📐 工作原理與說明
畫布邊長 = size(下限 80,預設 240);呼叫 QRCode.toCanvas 生成,引數 width = size、margin = 4、dark 取前景色、light 取背景色、errorCorrectionLevel 取所選糾錯等級;單模組至少 2px,尺寸不足時提示增大圖片;成功後匯出 PNG data URL 並插入畫布;二維碼庫未載入或生成報錯時提示對應錯誤
本工具為純前端線上工具,資料在瀏覽器本地處理、不上傳伺服器,依據對應領域標準與規範進行計算或處理,結果僅供參考。 工具名稱:樣式化二維碼 - 免費圖片處理工具,線上樣式化二維碼,免費使用。
Generate a standard QR code from the bundled qrcode.js library and customise its style, entirely in the browser.
點選生成按鈕
使用專案內建 qrcode.js 庫生成標準二維碼
📚 深度解析:樣式化二維碼
💡 常見使用場景
- 品牌物料掃碼。
- 海報美化。
- 活動頁入口。
生成圓點紫漸變碼
❓ 常見問題(FAQ)
- 太花掃不出?
- 裝飾會降低容錯,建議保留足夠靜區與對比,關鍵場景用標準碼。
- 容錯等級怎麼選?
- 裝飾會降低容錯;關鍵場景降裝飾、保 L/M 容錯與靜區。
- 會儲存或上傳我的內容嗎?
- 結果以瀏覽器即時計算為準,純前端本地處理、資料不上傳;生成的樣式與程式碼僅作快速產出參考,正式專案請以設計系統、規範與瀏覽器實測為準。
Formula & Standard References
| Item | Formula / Note | Source / Standard |
|---|---|---|
| Error correction | level H recovers about 30 percent, leaving room for a centre logo | ISO/IEC 18004 |
| Module shape | rounded or dotted modules weaken sampling and need more area | ISO/IEC 18004 |
| Quiet zone and contrast | keep a four-module quiet zone and strong dark-light contrast | ISO/IEC 18004 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準