Skip to content

benoitma/pretty_qr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PrettyQr

Overview

pretty_qr is a library based on [rQrCode] (http://github.com/whomwah/rqrcode) built to make beautiful QR codes.

What it can do for now :

  • QR codes are rendered with rounded corners
  • You can specify colors : foreground, background, marking corners.

Resources

Installation

Add this line to your application's Gemfile:

gem 'pretty_qr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install pretty_qr

Basic Usage

qr_code = PrettyQr::QrCode.new('http://google.com', { block_size: 10, foreground_color: 'purple' })
qr_code.render_to_file 'examples/images/basic.png'

It gives you a file like

Basic image

Custom corners

Use the option : corners_color to make a different color in the corners.

It gives you a qr_code a bit more beautiful

Basic image

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages