papnkukn/qrcode-svg

X and Y is switched QRCODES DONT WORK

jpike88 opened this issue · 2 comments

Why on earth would you switch the x and y coordinates? Do you even test your code?

qalqi commented

Change Lines 307 and 308
var py = (x * xsize + options.padding * xsize).toString();
var px = (y * ysize + options.padding * ysize).toString();

A fix in v1.1.0

new QRCode({
  ...
  swap: true //Swap X and Y modules
})