No commit activity in last 3 years
No release in over 3 years
An image file generator for QRCodes using RMagick
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.13.1
>= 0.1.2
 Project Readme

RQREncoder-Magick

An image file generator for QRCodes using RMagick

Install

Install with Rubygems:

gem install rqrencoder-magick

Usage

Create a QRCode using the (required) rqrencoder gem (http://github.com/mattyr/rqrencoder)

This gem extends the QRCode class to have "draw" and "save" functions

>> require 'rqrencoder-magick'
=> true
>> encoder = RQREncoder::QREncoder.new
=> #<RQREncoder::QREncoder>
>> qrcode = encoder.encode("HELLO")
=> #<RQREncoder::QRCode:0x0000010203b7b0>
>> qrcode.save("myqrcode.gif")
=> myqrcodegif  290x290 PseudoClass 2c 16-bit

Notes

I had difficulties with the output of RMagick (ImageMagick)'s svg format, so there are two additional "special" functions, draw_svg and save_svg as workarounds.

Author

Matt Robinson