LB Booster
General >> General Board >> Creating QR Codes http://lbb.conforums.com/index.cgi?board=general&action=display&num=1473794072 Creating QR Codes
Post by Richard Russell on Sep 13th, 2016, 7:14pm
There's a thread over at the LB Community Forum about how to create QR Codes in Liberty BASIC. As it states, there are online sites that will generate them for you, but as user Cryptoman has pointed out there are circumstances when you may want to generate a QR Code when you don't have an internet connection.
Whatever the requirement I always prefer programming a solution in native Liberty BASIC code, but I recognise that in this case that is probably over-ambitious. However there is an alternative: there's a self-contained command-line-driven QR Code generator which can easily be called using LB's RUN statement.
The generator can be downloaded as part of the qrencode-win32 package. If you run qrcodegui_setup-3.4.4.exe one of the files it installs is qrcode.exe. In its simplest mode that can be run from the command line as follows:
Code:
qrcode -o \temp\qr.png "The quick brown fox jumps over the lazy dog"
I'm sure I don't need to explain how to call it using LB's RUN statement.
Important note: This QR Code generator is licensed under the GNU LGPL (Lesser General Public Licence).
Richard.
Re: Creating QR Codes
Post by tsh73 on Sep 14th, 2016, 07:44am
Special kudos for JB compatible solution
Re: Creating QR Codes
Post by CryptoMan on Sep 17th, 2016, 9:47pm
Thanks for the link to this.
But, I like to make it from scratch if I can find some time in the future.
Probably, it will be hard and slower but it's a challenge.
First step is finding all necessary documentation and articles.