Turistforeningen / node-im-resize

Efficient image resize with multiple versions support
MIT License
20 stars 13 forks source link

Input / Output method interface refactor #4

Closed Starefossen closed 9 years ago

Starefossen commented 9 years ago
var image = {
  path: '/some/dir/image.jpg',
  width: 1024,
  height: 768
};

var output = {
  path: '/tmp/',
  prefix: 'im-',
  versions: [ ... ]
};

resize(image, output, function(err, versions) {
  // generated image versions 
});