qrcode_img.cr

Output QR Code image file

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

Repository

qrcode_img.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 2
  • about 5 years ago
  • March 13, 2019
License

MIT License

Links
Synced at

Sat, 18 May 2024 13:46:14 GMT

Languages