Socket
Socket
Sign inDemoInstall

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.1.5 to 1.1.6

13

index.js

@@ -67,2 +67,3 @@ "use strict";

{field: "backgroundColor", default: "#eeeeee"},
{field: "backgroundImage", default: ""},
{field: "lines", default: []},

@@ -95,2 +96,14 @@ {field: "textStyle", default: {}},

ctx.fillRect(0, 0, canvasWidth, canvasHeight);
if(options.backgroundImage != "") {
try {
const bckgBuffer = getPhoto(options.backgroundImage);
const image = new Image();
image.src = bckgBuffer;
ctx.drawImage(image, 0, 0, canvasWidth, canvasHeight)
} catch (e) {
throw new Error(`Unable to load background image`);
}
}
const sources = options.sources;

@@ -97,0 +110,0 @@ let maxImages = options.width * options.height;

2

package.json
{
"name": "nf-photo-collage",
"version": "1.1.5",
"version": "1.1.6",
"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