Saves the QR Code image according to the input string and supports the specified size(estimated)
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
require("qrcode_img")
qr = QRcodeImg::QRcode.new("大家好!", estimated_size = 720)
qr.real_size # => 714
qr.save("hello.png")
- Fork it (https://github.com/Hentioe/qrcode_img.cr)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Hentioe - creator and maintainer