QR Code encoding written in Common Lisp.
To write to PNG files, you will need to install zpng. If you load LispQR using lispqr.asd, all dependencies will get installed automatically:
(ql:quickload "lispqr")
;; Compile the files (lispqr.asd):
;; (ql:quickload "lispqr")
;; Change into the 'encode' package.
(in-package :mare5x.lispqr.encode) ;; (in-package :lispqr)
;; Encode to a PNG image file.
(encode->image "https://github.com/mare5x" "test.png" :ec-level :H)
(string: "https://github.com/mare5x", version: 4, error correction level: high, encoding mode: byte)
Checklist to get up and running using Portacle.
- Install Portacle.
- Ctrl-X, Ctrl-F <path to repo/lispqr.asd>
- Focus the code buffer and press Ctrl-C, Ctrl-K to load the current file.
(ql:quickload "lispqr")
in the REPL.- Now you are ready to tinker with LispQR.
Written based on QR standards "ISO/IEC 18004:2000" and "ISO/IEC 18004:2006".
Great additional resources: