31/8 QR Codes: Color, PDF, Size
| Category: QR Code, Data Matrix... By editor at 11:16 |
- How can we make a colored QR Code?
- How can we make a QR Code for printing, PDF would be good?
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:
- http://qrcode.kaywa.com/code/2029998765 : Output = PNG, Size = 4, content = 2029998765, blackness = 0 (black)
- http://qrcode.kaywa.com/code/4/2029998765 : Output = PNG, Size = 4, content = 2029998765, blackness = 0 (black)
- http://qrcode.kaywa.com/code/8777777/2029998765 : Output = PNG, Size = 8, content = 2029998765, foreground color: #777777
- http://qrcode.kaywa.com/code/f8777777/2029998765 : Output = PDF, Size = 8, content = 2029998765, foreground color: #777777
- http://qrcode.kaywa.com/code/5888888ff0000/2029998765 : Output = PNG, Size = 5, content = 2029998765, foreground color: #888888, background color: #ff0000
- http://qrcode.kaywa.com/code/5tttttt/2029998765 : Output = PNG, Size = 5, content = 2029998765, foreground color: (black, default), background color: transparent
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.



