QR code画像を作ってみる
実際に QR code 画像を作ってみる。
手順は test_qr.py そのまま。
[paraches@localhost bitly-pyqrencode-1cfb23c]$ python Python 2.7.2 (default, Mar 21 2012, 03:20:49) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from qrencode import Encoder >>> enc = Encoder() >>> im = enc.encode('http://www.paraches.com/', {'width':100}) >>> im.save('out.png') >>> quit() [paraches@localhost bitly-pyqrencode-1cfb23c]$