NAME

BLM::QRCode - Plugin to generate QR codes

SYNOPSIS

<plugin:QRCode https://www.treasurersbriefcase.com>
<var $QRCode.as_tag()>

DESCRIPTION

Plugin for generating QR codes that can be embedded in your HTML pages.

OPTIONS

--size

Horizontal and vertical size of module(dot). Default is 4.

--margin

Margin size of QR Code. Default is 3.

--level

Error correction level. Valid values are 'M', 'L', 'Q' or 'H'. Default is 'L'.

--version

Version of the symbol. If you specify '0', this module chooses the minimum version for the input data. Default is '0'.

--mode

Encoding mode. Valid values are 'numerical', 'alpha-numerical', '8-bit' or 'kanji'. Default is '8-bit'.

If not given "casesensitive" then should be given "mode". If 'kanji' is given, characters will be encoded as Shift-JIS characters. If '8-bit' is given, all of non-alpha-numerical characters will be encoded as is. If you want to embed UTF-8 string, choose '8-bit'.

--casesensitive

If your application is case-sensitive using 8-bit characters, set to '1'. Default is '0'.

METHODS AND SUBROUTINES

gen_qrcode

gen_qrcode([filename])

This method is called for you when the plugin in initialized if you provide arguments to the plugin. If you want to store the QR code to file, pass a filename. Files can only be written to the session directory. See Bedrock::Apache::BedrockSessionFiles for details regarding how to create and retrieve files from the session directory.

as_tag

<var $QRCode.as_tag()>

Returns an img tag with base64 encoded image.

<img src="data:image/png;base64, ....">

SEE ALSO

Imager::QRCode, BLM::Plugin

AUTHOR

Rob Lauer - rlauer6@comcast.net