ETC/CSS/HTML | Posted by 아키텍처 2012. 4. 25. 08:35

QR코드생성 - 구글API

 
 

http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=http://www.juuun.com

 
웹상에 이미지로 보여줄때는 <img src="http://chart.apis.google.com/chart?cht=qr&chs=200x200&chl=http://www.juuun.com"> 를 사용하면된다.
ㅋㅋ 넘 간단
 

 Parameter Required or Optional    Description
cht=qr   Required Specifies a QR code.  
chs=<width>x<height>   Required   Image size.  
chl=<data>   Required   The data to encode. Data can be digits (0-9), alphanumeric characters, binary bytes of data, or Kanji. You cannot mix data types within a QR code. The data must be UTF-8 URL-encoded. Note that URLs have a 2K maximum length, so if you want to encode more than 2K bytes (minus the other URL characters), you will have to send your data using POST.  
chd   NOT USED   QR codes are unusual in that the chd parameter is ignored. Don't include it in your URL.  
choe=<output_encoding>   Optional   How to encode the data in the chart. Here are the available values:
  • UTF-8 [Default]
  • Shift_JIS
  • ISO-8859-1
 

chld=<error_correction_level>|<margin>

 Optional
  • error_correction_level - QR codes support four levels of error correction to enable recovery of missing, misread, or obscured data. Greater redundancy is achieved at the cost of being able to store less data. See the appendixfor details. Here are the supported values:
    • L - [Default] Allows recovery of up to 7% data loss
    • M - Allows recovery of up to 15% data loss
    • Q - Allows recovery of up to 25% data loss
    • H - Allows recovery of up to 30% data loss
  • margin - The width of the white border around the data portion of the chart. This is in rows, not in pixels. (See below to learn what rows are in a QR code.) The default value is 4.



'ETC > CSS/HTML' 카테고리의 다른 글

[HTML5] Web Socket (웹소켓)  (0) 2012.11.12
윗첨자 아랫첨자 표시  (0) 2012.06.28
iframe 속성  (0) 2012.06.28
meta tag  (0) 2012.04.25
Posted by 김준홍 (http://www.Juuun.com)