glob-imagemagick
v0.0.0
Published
Use a glob pattern to find and resize a set of files with ImageMagick and save them to a new location.
Downloads
7
Maintainers
Readme
glob-imagemagick
Use a glob pattern to find and resize a set of files with ImageMagick and save them to a new location.
You need to install ImageMagick too.
# Mac
brew install imagemagick
# Ubuntu
sudo apt-get install imagemagick
Install
npm install glob-imagemagick
Usage
var resize = require('glob-imagemagick')
var sourceFolder = __dirname + '/images'
var targetFolder = __dirname + '/output'
resize(sourceFolder, ['**/*.png'], targetFolder, '100x100', function(err){
if ( err ) {
console.log(err);
}
})
Running Tests
npm test