erwanvivien / fast_qr

Ultra fast QRCode generation
https://fast-qr.com/
MIT License
197 stars 29 forks source link

Add customization of error code level (ecl) #52

Closed matbech closed 6 months ago

matbech commented 6 months ago

At the moment fast_qr (javascript/wasm interface) always uses the default error code level (ecl) of Q (25%). It would be desirable if this can be configured through SVGOptions.

e.g.

const options = new SvgOptions()
  .ecl(ECL.Q);
erwanvivien commented 6 months ago

fast_qr-0.12.1.tgz

Hey, could you try this dist and tell me if it fits your needs?

matbech commented 6 months ago

It is working exactly as I was looking for. Thank you.

erwanvivien commented 6 months ago

@matbech I updated https://www.npmjs.com/package/fast_qr to 0.12.1 with exactly the same dist, you can use that if you want