merge-images
Advanced tools
Comparing version 0.0.0 to 1.0.0
{ | ||
"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 @@ [](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 |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
105269
0