31/8  QR Codes: Color, PDF, Size

Category: QR Code, Data Matrix...    By editor at 11:16
These are recurring question so I try to answer it here:
  • How can we make a colored QR Code?
  • How can we make a QR Code for printing, PDF would be good?
The answer is: go check out QR Code Image:

You can generate QR-Code image with a simple URL and refine display through different parameters for visual adaptation.

Image URL

To hotlink an image, a set of RewriteRules have been defined:
Note (transparency "tttttt" is only supported on PNG image, and only on the background).


Non-rewritten URL
http://qrcode.kaywa.com/img.php?b=BBBBBB&w=FFFFFF&s=SIZE&t=TYPE
&d=DATA

Where:
  • BBBBBB is the foreground color, in HTML/Hex format. Defaults to 000000 (black)
  • FFFFFF is the background color, in HTML/Hex format. Defaults to ffffff (white)
  • SIZE is the module size: 1-10
  • TYPE is the output image type: f for PDF, p for PNG
  • DATA is the actual data (URL-ENCODED!)

Decoding with other 2D Barcode Readers

To allow other 2D Barcode Readers than the Kaywa Reader to decode generated
QR-Code you cannot use short code (ex. 2020400193). Instead you
must add the link http://d.kaywa.com/ before the DATA. Here is an example:

http://d.kaywa.com/2029998765

which gives you
http://qrcode.kaywa.com/img.php?s=5&d=http%3A%2F%2Fd.kaywa.com%2F2029998765

Generated QR-Code image will be bigger as more data is encoded.