Sometimes you want some free web site to generate an image quickly for you. And sometimes you want something that you can script and maybe run in the cloud.
- You need Ruby 2.7. You might want RVM
- Clone this project
bundle install
$ ruby qrdriver.rb
Commands:
qrdriver.rb generate URL # Generate a QR code that goes to URL.
qrdriver.rb help [COMMAND] # Describe available commands or one specific command
$ ruby qrdriver.rb generate "https://google.com"
(SVG is the default.)
$ ruby qrdriver.rb generate "https://example.com/qr" --format png
$ ruby qrdriver.rb generate "https://example.com/qr" --output-folder ~/Desktop/
If you want to set the folder, then set it in the filename.
$ ruby qrdriver.rb generate "https://example.com/qr" --output-filename qr.svg
$ ruby qrdriver.rb generate "https://example.com/qr" --output-filename ~/Desktop/qr.svg
$ ruby qrdriver.rb generate "https://example.com/qr" --no-open