After launching and now using my custom QR reader frequently, I came up with some more fun QR features. Let me break it down for you in this short article.

QR Code Image

Wherever you need a QR code, just insert an image from the following internet address:

https://qr.schucan.com/qr.svg?l=[any text]

where [any text] will be the content of the QR code.

Set [any text] to a valid internet address to directly get a QR code for that address. Same goes for mailto:, sms:, tel: links (see official list of «URI Schemes»).

Example:
https://qr.schucan.com/qr.svg?l=https://blog.schucan.com

Special feature

If you omit the «l» parameter, the QR Code will try to guess the internet address of the page where you inserted the QR Code. See to the right what is generated if I just insert the image https://qr.schucan.com/qr.svg.

Embedding QR code to current page

The simplest way to embed a QR code to the current page, just add this one-liner to your HTML code (can be done in an HTML block inside WordPress, too):

<script src="https://qr.schucan.com/embed.js"></script>

This will directly create a QR code that links to the current page.

Optionally, you can use the following parameters:

  • l: a custom text – corresponds to the l parameter above
  • a: a text that will be set as "alt" and "title" attribute for the image. Hovering over the image will display this text.
  • c: will set the "class" attribute of the image.

Example:

<script src="https://qr.schucan.com/embed.js?l=https://blog.schucan.com&a=Link to Luzi's Blog&c=flashy"></script>

Technical stuff

This tool uses the open source QR Code library phpQRCode by splitbrain.

No data is recorded whatsoever.

There is a testing page here.

What about you?

What do you think? Get in touch if you are interested in more features!

Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert