Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating QR codes

I am writing an application which is going to generate qr codes.

Most of the programming logic is implemented.

The next step in the process would be to generate the qr code image.

The most simple qr code is based on a 21x21 grid in which I have to make a tile (1x1) either black / white.

For more info: http://www.thonky.com/qr-code-tutorial/part-3-mask-pattern/

What would be the best approach for this.

I need to:

  1. Show a preview of the code in the application

  2. Give the user the option to save the qr code as an image (.jpg I think).

I.e. how to make an image which can be build like above and how to save it?

like image 284
PeeHaa Avatar asked Aug 20 '11 20:08

PeeHaa


People also ask

Is generating QR code free?

All generated QR Codes are 100% free and can be used for whatever you want.

Does Google have a free QR code generator?

Google has made it easy for teachers to create QR codes as there is now a QR code generator built into Google Chrome!


1 Answers

I would personally try to use the Google charts servic in order to generate the qr code image. Easy and simple. Here is an example image from Google's site.

https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=Hello%20world&choe=UTF-8

Check out the docs here: http://code.google.com/apis/chart/infographics/docs/qr_codes.html

like image 94
John P Avatar answered Sep 24 '22 10:09

John P