You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+48-17Lines changed: 48 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
*
4
4
* NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "easyqrcodejs-nodejs",
3
-
"version": "4.2.7",
3
+
"version": "4.3.0",
4
4
"description": "NodeJS QRCode generator. Can save image or svg to file, get standard base64 image data url text or get SVG serialized text. Cross-browser QRCode generator for pure javascript. Support Dot style, Logo, Background image, Colorful, Title etc. settings. support binary mode.(Running without DOM on server side)",
logoWidth: 80, // fixed logo width. default is `width/3.5`
180
+
logoHeight: 80, // fixed logo height. default is `heigth/3.5`
181
+
logoMaxWidth: undefined, // Maximum logo width. if set will ignore `logoWidth` value
182
+
logoMaxHeight: undefined, // Maximum logo height. if set will ignore `logoHeight` value
183
+
logoBackgroundColor: '#fffff', // Logo backgroud color, Invalid when `logBgTransparent` is true; default is '#ffffff'
184
+
logoBackgroundTransparent: false, // Whether use transparent image, default is false
183
185
*/
184
186
185
187
// ====== Backgroud Image
@@ -279,8 +281,10 @@ var qrcode = new QRCode(options);
279
281
|**quietZoneColor**| N | String |`rgba(0,0,0,0)`| Background CSS color to Quiet Zone |
280
282
| Logo options| --- | ---|---|---|
281
283
|**logo**| N | String |`undefined`| Logo Image Path or Base64 encoded image. If use relative address, relative to `easy.qrcode.min.js`|
282
-
|**logoWidth**| N | Number |`undefined`| Height |
283
-
|**logoHeight**| N | Number |`undefined`| Width |
284
+
|**logoWidth**| N | Number |`width/3.5`| Fixed logo width. |
285
+
|**logoHeight**| N | Number |`height/3.5`| fixed logo height. |
286
+
|**maxLogoWidth**| N | Number |`undefined`| Maximum logo width. if set will ignore `logoWidth` value. |
287
+
|**maxLogoHeight**| N | Number |`undefined`| Maximum logo height. if set will ignore `logoHeight` value. |
284
288
|**logoBackgroundTransparent**| N | Boolean |`false`| Whether the background transparent image(`PNG`) shows transparency. When `true`, `logoBackgroundColor` is invalid |
285
289
|**logoBackgroundColor**| N | String |`#ffffff`| Set Background CSS Color when image background transparent. Valid when `logoBackgroundTransparent` is `false`|
0 commit comments