Google have recently added a QR Code generator API to their existing extensive API of chart generators. It's never been easier to generate your own QR Codes straight from within your own website without any programming involved whatsoever.
The new qr chart type has three attributes :-
cht=qr
chl=<text>
choe=<output> optional
The Output paramater specifies how the text is encoded in the QR Code and the options are Shift_JIS, UTF-8, or ISO-8859-1.
Hexadecimal notion should be used for special characters, for example use %20 instead of a space (Hexadecimal 0x20 is ascii 32 which represents a space). A complete ASCII table can be found at web.cs.mun.ca
Here's the api call to create a http:\\www.qrme.co.uk QR code :-
<img src="http://chart.apis.google.com/chart?cht=qr&chl=http://www.qrme.co.uk&chs=120x120"
alt="Sample chart" />
..and heres the result
If you want to just mess about with QR Codes just paste this into your browser address bar and modify it :-
http://chart.apis.google.com/chart?cht=qr&chl=http://www.qrme.co.uk&chs=120x120
Note that you must specify the chart size (attribute chs) otherwise you'll get a malformed address error back from the api.
You can also optionally set the Error correction level using the chld attribute :-
chld=<EC level>|<margin>
Where:
* <EC level> is one of
- L allows 7% of a QR code to be restored
- M allows 15% of a QR code to be restored
- Q allows 25% of a QR code to be restored
- H allows 30% of a QR code to be restored
(or their lower case equivalents l, m, q, or h).
* <margin> defines the margin (or blank space) around the QR code. The default image has a margin equivalent to 4 rows / columns of the chart.
More information on Googles QR Code api can be found at Google QR Code API.
| < Prev | Next > |
|---|













