album-creator
v0.4.2
Published
Get all images from source folder and make thumbs, copy in many different size and embed watermark
Downloads
17
Readme
AlbumCreator
Get all images from source folder and make thumbs, copy in many different size and embed watermark. Image processing is based on Jimp (https://github.com/oliver-moran/jimp)/
Install
npm install album-creatorUsage form command line
Install as a global module
npm install -g album-creatorand you can use with albumcreator command
albumcreator -s my-album-settings.jsonIf you still want to use locally, then use node_modules/.bin/albumcreator instead
Usage
const AlbumCreator = require('album-creator');
const settings = {
dest: "new-album",
source: "./original",
filter: "png jpg jpeg",
thumb: {
subfolder: "thumb",
size: 128,
quality: 70
},
watermark: {
path: "logo.png",
position: "bottom right",
opacity: 0.5
},
sizes: [
{
subfolder: "large",
width: 1920,
height: 1080,
quality: 90
},
{
subfolder: "small",
width: 480,
height: 480,
quality: 70
}
]
};
AlbumCreator( settings );