lispqr

2021-06-30

QR code encoding.

Upstream URL

github.com/mare5x/LispQR

Author

mare5x.dev@gmail.com

License

MIT
README

LispQR

QR Code encoding written in Common Lisp.

Usage

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)

https://github.com/mare5x
(string: "https://github.com/mare5x", version: 4, error correction level: high, encoding mode: byte)

Portacle

Checklist to get up and running using Portacle.

  1. Install Portacle.
  2. Ctrl-X, Ctrl-F <path to repo/lispqr.asd>
  3. Focus the code buffer and press Ctrl-C, Ctrl-K to load the current file.
  4. (ql:quickload "lispqr") in the REPL.
  5. Now you are ready to tinker with LispQR.

References

Written based on QR standards "ISO/IEC 18004:2000" and "ISO/IEC 18004:2006".

Great additional resources:

Dependencies (1)

  • zpng

Dependents (0)

    • GitHub
    • Quicklisp