Commit Graph

6 Commits

Author SHA1 Message Date
Michael Stapelberg
c63152fc39 re-implement SVG version from scratch
This implementation is using the bit matrix returned by zxing,
and then we do our own SVG rendering.

The SIX-supplied Swiss Cross SVG version is now used for the overlay.

The resulting SVG has been successfully tested in a number of different SVG
rendering engines:

• Google Chrome 86
• Firefox 82
• Emacs 26
• GIMP
• Inkscape
• Mobile Safari

When rendering the SVG onto 1265x1265 px at 600 dpi,
the resulting image matches the PNG version exactly.
2020-11-07 14:36:12 +01:00
Michael Stapelberg
11ded9c5ab switch to gozxing for visual similarity with SIX reference impl
The SIX reference implementation in Java that can be found at
https://www.paymentstandards.ch/dam/downloads/qrcodegenerator.java
uses the zxing library to generate their QR codes.

zxing is also available as a Go version, which we now use.
This means the QR codes can be compared visually to the reference.
2020-11-07 13:11:34 +01:00
Michael Stapelberg
d3214c1a89 handle URLs specified on the command line 2020-06-29 14:46:03 +02:00
Michael Stapelberg
32f7e8a5c5 cache headers, redirect to format=html by default 2020-06-29 14:45:37 +02:00
Michael Stapelberg
8bf9d10964 implement web handler for QR code generation 2020-06-29 14:45:30 +02:00
Michael Stapelberg
8410782ab8 initial commit 2020-06-29 14:45:14 +02:00