Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nf-photo-collage

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nf-photo-collage - npm Package Compare versions

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 {

2

package.json
{
"name": "nf-photo-collage",
"version": "1.3.3",
"version": "1.3.4",
"publishConfig": {

@@ -5,0 +5,0 @@ "access": "public"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc