Skip to content

aethermx/glob-imagemagick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glob-imagemagick

Build Status Code Climate

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

About

Use a glob pattern to find and resize a set of files with ImageMagick and save them to a new location.

Resources

License

Stars

Watchers

Forks

Packages

No packages published