Skip to content

kizzx2/haskell-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aba4b31 · May 23, 2023

History

28 Commits
May 23, 2023
Sep 24, 2011
Jun 17, 2018
Jun 14, 2018
Jun 14, 2018
Sep 16, 2011
Sep 17, 2017
Sep 16, 2011
Sep 16, 2011
Jun 17, 2018
May 23, 2023

Repository files navigation

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