notes

Personal notes
git clone git://git.laack.co/notes.git
Log | Files | Refs

Qrencode.md (624B)


      1 # qrencode
      2 
      3 **Source:** [https://github.com/fukuchi/libqrencode](https://github.com/fukuchi/libqrencode)
      4 
      5 **Definition:** qrencode is a CLI utility that creates a QR code for stdin or a CLI argument.
      6 
      7 NOTE: For **reading** QR codes, you'll want to use `zbarimg`.
      8 
      9 ## Usage
     10 
     11 Output with UTF-8 encoding:
     12 
     13 `echo "https://laack.co" | qrencode -t UTF8`
     14 
     15 Output with ASCII encoding:
     16 
     17 `echo "https://laack.co" | qrencode -t ASCII`
     18 
     19 Write the QR code for the stdin to a png file:
     20 
     21 `echo "https://laack.co" | qrencode -o qrcode.png`
     22 
     23 Write the QR code for the CLI argument to a png file:
     24 
     25 `qrencode -o qrcode.png "https://laack.co"`