imagemagickresizer

A node library to resize images using ImageMagick

npm install imagemagickresizer
13 downloads in the last month

imagemagickresizer

A node library to resize images using ImageMagick

usage

var Resizer = require('imagemagickresizer');

var resize = new Resizer('./imgs', './output', [{
  width:1024,
  height:768
},{
  width:102,
  height:77,
  name:'thumb'
}])

resize.process(function(){
    console.log('images resized!');
})

If ./imgs was a folder with:

  • image1.png (2048 x 1536)
  • image2.png (2048 x 1536)

Then ./output would contain:

  • image1.png (1024 x 768)
  • image1.thumb.png (102 x 77)
  • image2.png (1024 x 768)
  • image2.thumb.png (102 x 77)

installation

$ npm install imagemagickresizer
npm loves you