Created
March 25, 2015 06:43
-
-
Save t-kashima/65871bbf67b949ea4539 to your computer and use it in GitHub Desktop.
QRCode for Ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
require 'rqrcode' | |
require 'rqrcode_png' | |
require 'chunky_png' | |
qr = RQRCode::QRCode.new('Hello, world', :size => 3, :level => :h) | |
png = qr.to_img | |
png.resize(200, 200).save('qrcode.png') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment