ChrisCinelli / branded-qr-code

npm module to create QR Codes with a logo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chagne image size

franciscomemoli opened this issue · comments

Hi, there is a way to change the image size. I would like to set the size of the output image.
For the moment I'm getting an 164x164 image.

Answer my self.
You can add the parameter width on the opt attribute.

opt: { errorCorrectionLevel: qr.ec || 'H', margin: 2, width: 800},