View Single Post
  #1   (View Single Post)  
Old 29th May 2019
victorvas's Avatar
victorvas victorvas is offline
Real Name: Victor
Port Guard
 
Join Date: May 2019
Posts: 21
Thumbs up Creating QR codes in OpenBSD

We wanted to send our users text messages in form of QR codes, for them to be able to scan those codes with smartphones.
At first we decided to use one of the web services for QR code generation, but then my friend Gunther found that you can create QR codes in OpenBSD by using a package named libqrencode.
terminal command:
qrencode -s 6 "Your text here!" -o code.png
where -s controls the size of the image (3 is default)

To read QR codes from the image you can use the package, called zbar.
terminal command:
zbarimg code.png
Reply With Quote