1.1.2 • Published 7 years ago

merge2images v1.1.2

Weekly downloads
18
License
ISC
Repository
github
Last release
7 years ago

Merge2Images

Merge images using the api of Images

Author

Instalation

$ npm install merge2images

API

const images = require('merge2images');

//merge big image with small image and save at out image
images.merge(bigImg, smallImg, outImg);

//merge big image with small image at coordinates (x,y) and save at out image
images.mergeWithCoordinates(bigImg, smallImg, outImg, x, y);

//merge big image with small image, save at out image and auto scaling with number of width pixel
images.mergeWithAutoScaling(bigImg, size1, smallImg, size2, outImg);

//merge big image with small image, save at out image and manual scaling with number of width and height pixels
images.mergeWithManualScaling(bigImg, width1, height1, smallImg, width2, height2, outImg);

//merge big image with small image, save at out image, manual scaling and set coordinates(x,y)
images.mergeWithAll(bigImg, width1, height1, smallImg, width2, height2, outImg, x, y);

//merge big image with small image, save at out image, manual scaling and set small image at the center of the screen
images.mergeWithAllCenter(bigImg, width1, height1, smallImg, width2, height2, outImg);

Example

const images = require('merge2images');

const bigImage = '/home/compyrat/server/public/images/bigImage.png';
const smallImage = '/home/compyrat/server/public/images/smallImage.png';
const outImage = '/home/compyrat/server/public/images/output/output.png';

exports.index = function(req, res){
	images.mergeWithAllCenter(bigImage, 500, 300,
							smallImage, 400, 100,
							outImage);
	next();  
};
1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago