nf-photo-collage
Advanced tools
Comparing version 1.3.3 to 1.3.4
20
index.js
@@ -80,8 +80,24 @@ "use strict"; | ||
.each((photoBuffer, i) => { | ||
if (i >= maxImages) return; | ||
if (options.backgroundImage != "") { | ||
if (i - 1 >= maxImages) return; | ||
} else { | ||
if (i >= maxImages) return; | ||
} | ||
const img = new Image(); | ||
img.src = photoBuffer; | ||
// if (options.backgroundImage != "") { | ||
// if (i == 0) { | ||
// // draw background | ||
// ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight) | ||
// } else { | ||
// i--; // offset for first image | ||
// } | ||
// } else { | ||
// } | ||
if (i == 0 && options.backgroundImage != "") { | ||
// draw background | ||
ctx.drawImage(img, 0, 0, canvasWidth, canvasHeight) | ||
@@ -88,0 +104,0 @@ } else { |
{ | ||
"name": "nf-photo-collage", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10408
154