New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

merge-images

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-images - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

4

package.json
{
"name": "merge-images",
"version": "0.0.0",
"description": "Easily compose images together without messing around in canvas",
"version": "1.0.0",
"description": "Easily compose images together without messing around with canvas",
"main": "src/index.js",

@@ -6,0 +6,0 @@ "scripts": {

# merge-images
> Easily compose images together without messing around in canvas
> Easily compose images together without messing around with canvas

@@ -9,5 +9,5 @@ [![Build Status](https://travis-ci.org/lukechilds/merge-images.svg?branch=master)](https://travis-ci.org/lukechilds/merge-images)

Canvas can be kind of a pain to work with, especially when you need to set everything up just to do a fairly simple image manipulation. This module abstracts away all the repetitive tasks into one simple function call.
Canvas can be kind of a pain to work with sometimes, especially if you just need a canvas context to do something relatively simple like merge some images together. `merge-images` abstracts away all the repetitive tasks into one simple function call.
Images can be overlaid on top of each other and repositioned. The function returns a Promise which resolves to a base64 data URI. Works both in the browser and in Node.js.
Images can be overlaid on top of each other and repositioned. The function returns a Promise which resolves to a base64 data URI. Supports both the browser and Node.js.

@@ -31,3 +31,3 @@ ## Install

```js
const mergeImages = require('merge-images');
import mergeImages from 'merge-images';

@@ -93,3 +93,3 @@ mergeImages(['/body.png', '/eyes.png', '/mouth.png'])

One thing to note is that you need to provide a valid image source for the node-canvas `Image` rather than a DOM `Image`. Notice the above example uses a file path, not a relative URL like the other examples. Check the node-canvas docs for more information on valid `Image` sources.
One thing to note is that you need to provide a valid image source for the node-canvas `Image` rather than a DOM `Image`. Notice the above example uses a file path, not a relative URL like the other examples. Check the [node-canvas docs](https://github.com/Automattic/node-canvas) for more information on valid `Image` sources.

@@ -96,0 +96,0 @@ ## API

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