qrcode_img.cr
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
- 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
Contributors
- Hentioe - creator and maintainer
Repository
qrcode_img.cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 2
- over 5 years ago
- March 13, 2019
License
MIT License
Links
Synced at
Fri, 08 Nov 2024 01:28:03 GMT
Languages