masques icon indicating copy to clipboard operation
masques copied to clipboard

QR Code

Open tedstein opened this issue 12 years ago • 11 comments

http://www.copperykeenclaws.com/how-to-create-qr-codes-in-java/

https://github.com/mdpendergrass/qrcode

tedstein avatar Jan 15 '13 15:01 tedstein

Problems in QR code land:

Matt's identity, in xml, is 883 chars long, all types of chars.

In json I got it down to 806.

We need it to be at 669 or lower to work with QR code readers in smart phones. Abadandon QR?

Details on QR code length: http://www.qrstuff.com/blog/2011/11/23/qr-code-minimum-size

tedstein avatar Jan 16 '13 21:01 tedstein

Possible solution:

  • Separate QR codes for an identity and a destination? That would shorten the files to a workable length.

tedstein avatar Jan 17 '13 00:01 tedstein

I think separate QR codes for the identity and destination is the best way to go. I also don't think they need to be imported at the same time.

The other option is to import a url to the file containing the identity and destination. A url would centralize the list of identities which may cause a problem.

macourtney avatar Jan 17 '13 02:01 macourtney

These are your identity (blue) and destination (green) QR codes:

qrcode 11039015 qrcode 11039011

As long as we don't add meta data to the destination, we are good. The identity still has a bit of room, which is why everything is bigger in it.

tedstein avatar Jan 17 '13 03:01 tedstein

You can convert them to text with a QR Code reader. They come as smartphone apps and uses your phone's camera.

tedstein avatar Jan 17 '13 03:01 tedstein

It works! I will have to create a way of importing the identity and destination as separate tags.

macourtney avatar Jan 17 '13 03:01 macourtney

I will implement this on the public groups (Find Masques tab) section of the website. I think we should accept text and offer the user either text or qr codes to download when they find a group they want to connect with?

tedstein avatar Jan 17 '13 04:01 tedstein

Text ecoding.

Our options are:

  • UTF-8
  • Shift_JIS
  • ISO-8859-1

You should decide probably based on the Java library or Clojure library. The Java one looks pretty great.

  • http://code.google.com/p/zxing/
  • https://github.com/mdpendergrass/qrcode

In any event, I will be using PHP, and can easily produce the three encoding options above. Let me know which one to use.

tedstein avatar Jan 17 '13 04:01 tedstein

I need to do more research here. I am on it. Will post back.

tedstein avatar Jan 17 '13 04:01 tedstein

For the record, if we can, I would like to keep everything UTF-8.

tedstein avatar Jan 17 '13 17:01 tedstein

Yes, UTF-8 should work fine and is my suggestion. However, I haven't checked out any of the libraries.

macourtney avatar Jan 17 '13 17:01 macourtney