Skip to content

A Ruby library that encodes QR Codes and uses RMagick to render QR Code images

License

Notifications You must be signed in to change notification settings

deppyu/rqrcode-image

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rQRCode-image, Encode QRCodes, Render QRCode Images

Overview

rQRCode-image is a library for encoding QR Codes, and render images using RMagick in Ruby. It has a simple interface with all the standard qrcode options. It is a fork of whomwah(Duncan Robertson's rqrcode gem).

Let's clear up some rQRCode-image stuff.

  • rQRCode-image is NOT a standalone library It requires RMagick and thus ImageMagick.
  • It is an encoding library. You can't decode QR codes with it.
  • The interface is simple and assumes you just want to encode a string into a QR code, then render an image of the QR Code
  • QR code is trademarked by Denso Wave inc

Resources

Installing

You can get the latest source from http://github.com/bluetwin/rqrcode-image

git clone git://github.com/bluetwin/rqrcode-image.git

Tests

To run the tests:

$ rake

Loading rQRCode-image Itself

You have installed the gem already, yeah?

require 'rubygems'
require 'rqrcode-image'

Simple QRCode generation to ImageBlob

qr = RQRCodeImage::QRCode.new( 'my string to generate', :size => 4, :level => :h )
puts qr.to_image


## Simple QRCode generation to template (RubyOnRails)

```erb
# Controller
@qr = RQRCodeImage::QRCode.new( 'my string to generate', :size => 4, :level => :h )

# View: (minimal styling added)

Authors

Original rqrcode author: Duncan Robertson Forked by(as done by many others) : Brandon Sislow

Special thanks to the following people for submitting patches to rqrcode:

Contributing

  • Fork the project
  • Send a pull request
  • Don't touch the .gemspec, I'll do that when I release a new version

Copyright

MIT Licence (http://www.opensource.org/licenses/mit-license.html)

About

A Ruby library that encodes QR Codes and uses RMagick to render QR Code images

Resources

License

Stars

Watchers

Forks

Packages

No packages published