BLM::QRCode - Plugin to generate QR codes
<plugin:QRCode https://www.treasurersbriefcase.com>
<var $QRCode.as_tag()>
Plugin for generating QR codes that can be embedded in your HTML pages.
Horizontal and vertical size of module(dot). Default is 4.
Margin size of QR Code. Default is 3.
Error correction level. Valid values are 'M', 'L', 'Q' or 'H'. Default is 'L'.
Version of the symbol. If you specify '0', this module chooses the minimum version for the input data. Default is '0'.
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'.
If your application is case-sensitive using 8-bit characters, set to '1'. Default is '0'.
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.
<var $QRCode.as_tag()>
Returns an img tag with base64 encoded image.
<img src="data:image/png;base64, ....">
Rob Lauer - rlauer6@comcast.net