0.0.0 • Published 9 years ago

glob-imagemagick v0.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

glob-imagemagick

Build Status

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

Legal

Æther

hello@aether.mx

Licensed under the MIT license