Skip to content

Hentioe/qrcode_img.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code image

Saves the QR Code image according to the input string and supports the specified size(estimated)

Installation

Add this to your application's shard.yml:

dependencies:
  qrcode_img:
    github: Hentioe/qrcode_img.cr
    branch: master

libqrencode is required. On Debian-based systems, it can be installed via:

sudo apt install libqrencode-dev

Usage

require("qrcode_img")

qr = QRcodeImg::QRcode.new("大家好!", estimated_size = 720)
qr.real_size # => 714
qr.save("hello.png")

Contributing

  1. Fork it (https://github.com/Hentioe/qrcode_img.cr)
  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 a new Pull Request

Contributors

About

Output QR Code image file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published