The qr-imager package

[Tags:bsd3, library, test]

Please see README.md


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.2.0, 0.1.2.1, 0.2.0.0, 0.2.1.0, 0.2.1.1, 0.2.1.2, 0.2.1.3, 0.2.2.0, 1.0.0.0, 1.0.0.1, 1.0.0.2, 1.0.0.3, 1.0.1.0, 1.0.1.1
Dependencies aeson, base (>=4.7 && <5), bytestring, cryptonite, directory, haskell-qrencode, jose-jwt, JuicyPixels, microlens, MissingH, optparse-applicative, process, vector [details]
License BSD3
Copyright Copyright: (c) 2016 Vanessa McHale
Author Vanessa McHale
Maintainer tmchale@wisc.edu
Category Data
Home page https://github.com/vmchale/QRImager#readme
Source repository head: git clone https://github.com/vmchale/QRImager
Uploaded Mon May 29 05:36:39 UTC 2017 by vmchale
Distributions NixOS:1.0.1.0
Downloads 435 total (76 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2017-05-29 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for qr-imager

Readme for qr-imager-1.0.1.1

QR Imager Library

Build Status

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

Dependencies

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.

Library

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.

Executable

Installation

For building haskell, the best tool is currently http://haskellstack.org. Install it, and then type

stack install --install-ghc

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

Use

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"