The qr-imager package

[Tags:bsd3, library, test]

Please see

[Skip to Readme]


Dependencies aeson (>= && <1.1), base (>=4.8 && <5), bytestring (>= && <0.11), cryptonite (==0.21.*), directory (>= && <1.4), haskell-qrencode (>=1.0.4 && <1.1), jose-jwt (>=0.7.5 && <0.8), JuicyPixels (>= && <3.3), microlens (>= && <0.5), MissingH (>= && <1.5), optparse-applicative (>= && <0.14), process (>= && <1.5), vector (>= && <0.12) [details]
License BSD3
Copyright Copyright: (c) 2016 Vanessa McHale
Author Vanessa McHale
Category Data
Home page
Source repository head: git clone
Uploaded Sun Apr 16 04:15:18 UTC 2017 by vmchale
Updated Sun Apr 16 07:02:16 UTC 2017 by HerbertValerioRiedel to revision 1
Distributions NixOS:
Downloads 355 total (50 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2017-04-16 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for qr-imager

Readme for qr-imager-

QR Imager Library

Build Status

This is a library to generate .png files from QR codes.


The library depends on the C library libqrencode which you will need to install separately, as well as the C library Zbar from here. You should also be able to get them from your distro.


The library can be used via the exported functions createQRCode, byteStringToQR and readQRString, plus their signed counterparts. The first two export to ".png" while the third can be used on any image format Zbar supports.

The functions bsToImg and objToImg output JuicyPixels images for your further manipulation.



For building haskell, the best tool is currently Install it, and then type

stack install --install-ghc

in the appropriate directory, and it will be installed to your path.


Compiling will generate an executable called qrpipe which reads from stdin and outputs a file as the second argument, e.g.

echo 'My name is: Vanessa" | qrpipe write -v "nametag.png"

To then read the nametag:

qrpipe read "nametag.png"