QR Code encoder (future) decoder in pure Haskell
Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Codec/Binary
doc
test
.gitignore
Example.hs
LICENSE
README.markdown
Setup.hs
TODO
qrcode.cabal
stack.yaml

README.markdown

Basic Encoding

The encode function and the toArray function are all you need. See Example.hs. You can use ImageMagick/GraphicsMagick to enlarge the symbol and convert to other formats:

$ runhaskell Example.hs

$ # ImageMagick
$ convert hello.pgm -bordercolor white -border 4 -scale 300x300 -interpolate integer hello.png

$ # GraphicsMagick
$ gm convert hello.pgm -bordercolor white -border 4 -scale 300x300 hello.png

Output:

Example output