0.4.2 • Published 6 years ago

album-creator v0.4.2

Weekly downloads
4
License
ISC
Repository
github
Last release
6 years ago

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-creator

Usage form command line

Install as a global module

npm install -g album-creator

and you can use with albumcreator command

albumcreator -s my-album-settings.json

If 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 );
0.4.2

6 years ago

0.4.1

6 years ago

0.3.4

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.0.1

6 years ago