macでterminalからQRコードを生成するには,qrencodeを使う
公開日:
libqrencode を使えば,macのterminal上で,QRコードを生成できる。
qrencodeのinstall
brew install qrencode
使い方
qrencode -h
がhelpコマンドなので,適宜参照する。
qrencode https://blog.grikk.co.jp -o test.png -l H -d 350
とすると,
https://blog.grikk.co.jpが 誤り訂正レベルh(-lの引数)で,DPIが350で(-dの引数)test.png(-oの引数)に書き出される。
意味はないが,上記の入力で作成したQRコードを載せておく。
