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.
13 lines
363 B
Modula-2
13 lines
363 B
Modula-2
module github.com/stapelberg/qrbill
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/ajstarks/svgo v0.0.0-20200320125537-f189e35d30ca
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/makiuchi-d/gozxing v0.0.0-20200903113411-25f730ed83da
|
|
github.com/mattn/go-isatty v0.0.12
|
|
golang.org/x/text v0.3.4 // indirect
|
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
|
)
|