ANNC: QR Code (v.2)
I've got a new version of the QR Code generator: http://smalltalkhub.com/#!/~JochenRick/QRCode This one includes support for MicroQR, for UTF-8 encoding and other aspects of the latest QR standard (e.g., mirroring). I've also written a small Zinc web app which makes it easy to try out. Enjoy! Jeff -- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
Cool! Thank you Jeff. Esteban A. Maringolo 2014-10-06 12:49 GMT-03:00 J.F. Rick <self@je77.com>:
I've got a new version of the QR Code generator: http://smalltalkhub.com/#!/~JochenRick/QRCode
This one includes support for MicroQR, for UTF-8 encoding and other aspects of the latest QR standard (e.g., mirroring). I've also written a small Zinc web app which makes it easy to try out.
Enjoy!
Jeff
-- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
this is cool I want discussing with olivier and do you think that it would be easy to produce pdf (beside cropping the morph and saving it as png) On 6/10/14 17:49, J.F. Rick wrote:
I've got a new version of the QR Code generator: http://smalltalkhub.com/#!/~JochenRick/QRCode <http://smalltalkhub.com/#%21/%7EJochenRick/QRCode>
This one includes support for MicroQR, for UTF-8 encoding and other aspects of the latest QR standard (e.g., mirroring). I've also written a small Zinc web app which makes it easy to try out.
Enjoy!
Jeff
-- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
Well, the QRCode natively just has a bitmap form. The little server app requests that form (perhaps with a border, mirrored, reversed, etc.) and then magnifies it and converts it to a PNG. So, putting the result in a PDF is as trivial or as hard as putting a bitmap form into a PDF. How difficult that is is something that Olivier can perhaps answer. QR codes ultimately just carry some text. We're used to it being a URL but any arbitrary text is possible. Several formats have established themselves. For instance, you can use the VCard format to create a business card QR code. So, there could be some nice uses of QR code where PDF is the right medium. Cheers, Jeff On Tue, Oct 7, 2014 at 3:15 AM, stepharo <stepharo@free.fr> wrote:
this is cool I want discussing with olivier and do you think that it would be easy to produce pdf (beside cropping the morph and saving it as png) On 6/10/14 17:49, J.F. Rick wrote:
I've got a new version of the QR Code generator: http://smalltalkhub.com/#!/~JochenRick/QRCode < http://smalltalkhub.com/#%21/%7EJochenRick/QRCode>
This one includes support for MicroQR, for UTF-8 encoding and other aspects of the latest QR standard (e.g., mirroring). I've also written a small Zinc web app which makes it easy to try out.
Enjoy!
Jeff
-- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
-- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
2014-10-07 8:54 GMT-03:00 J.F. Rick <self@je77.com>:
QR codes ultimately just carry some text. We're used to it being a URL but any arbitrary text is possible. Several formats have established themselves. For instance, you can use the VCard format to create a business card QR code. So, there could be some nice uses of QR code where PDF is the right medium.
Inf fact our business cards have a QR Code in the back containing a VCard. :) Also, we're working in an extension to our mobile app where the QR acts as a "command" and the user carries a few QR codes in a keychain like holder, saving them from typing some data or going through menus. It's an usable and compatible way of encoding text graphically. Esteban A. Maringolo ps: There is also a way to encode a QR with a image/logo inside, but I don't know how that works.
On Tue, Oct 7, 2014 at 8:52 AM, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
ps: There is also a way to encode a QR with a image/logo inside, but I don't know how that works.
As far as I can tell, that whole "embed an image / logo" is a stupid hack. QR codes have error correction. So, if you choose a high error correction, you can replace meaningful pixels with a logo and it will still function. But, it means that you have to choose high error correction, leading to a larger code, which is inherently harder to scan. My advice is to keep the QR code small and it doesn't have to take up that much real estate. Then, you can put your nice logo next to the QR code, taking up the same amount of space and looking better. A more promising angle is a translucent QR code, such as featured on the following: http://www.visualead.com/explore-qr-code-designs/ Cheers, Jeff -- Jochen "Jeff" Rick, Ph.D. http://www.je77.com/ Skype ID: jochenrick
Le 7 oct. 2014 à 13:54, J.F. Rick a écrit :
Well, the QRCode natively just has a bitmap form. The little server app requests that form (perhaps with a border, mirrored, reversed, etc.) and then magnifies it and converts it to a PNG. So, putting the result in a PDF is as trivial or as hard as putting a bitmap form into a PDF. How difficult that is is something that Olivier can perhaps answer.
In fact, the faster approach is to convert the PNG to a JPEG picture with Pharo and to include it into a PDF Document with Artefact. It's easy to do but I can't estimate the quality lost of the picture (I suppose that's is important for the scanning of the QRCode with a phone). pharoByExampleLogo := (ZnClient new url: 'http://pharobyexample.org/pictures/pbe-title.jpg'; get). aPage := PDFPage new. aPage add: (PDFJpegElement from: 5 mm@0mm wh: 160mm@90mm fromStream: pharoByExampleLogo readStream). The best solution is to create a QRCodeComponent in Artefact and draw the QRCode directly in the PDF document. Olivier ;-)
participants (4)
-
Esteban A. Maringolo -
J.F. Rick -
Olivier Auverlot -
stepharo