Thumb.multiple()

generate multiple thumbs for an image

look tests/test.js for example

Usage

Hover over inputs/exits for more info.

var Thumb = require('machinepack-thumb');


// generate multiple thumbs for an image

Thumb.multiple({

schema: [],

source: 'samples/test.png',

done: '*',

quality: 2,

}).execSync();

Inputs

schema required

a schema of thumb source

source

a source path

'samples/test.png'
done

a callback after writing

quality

a number (1-100)

2

Exits

error

An unexpected error occurred.

success

OK.