Tested on Ubuntu 20
With qrencode you can encode text, strings or urls into a QR image, easily.
Install package:
~ $ sudo apt-get install qrencode
Generate a QR image from a URL in PNG format:
~ $ qrencode -o thebestwebsite.png -t PNG "https://rageagainstshell.com"
Generate a QR image from a URL in PNG format, with size 10 (default is 3):
~ $ qrencode -s 10 -o thebestwebsite.png -t PNG "https://rageagainstshell.com"
Print a QR image by stdout from a text:
qrencode -t ansiutf8 "This is a string" -o -
If you feel green, you may change the default background color:
~ $ qrencode --background=457834 -s 5 -o thebestwebsite.png -t PNG "https://rageagainstshell.com"
Or the foreground:
~ $ qrencode --foreground=457823 -s 5 -o thebestwebsite.png -t PNG "https://rageagainstshell.com"