Turistforeningen / node-im-resize

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

Image versions path directory #2

Closed Starefossen closed 9 years ago

Starefossen commented 9 years ago

Currently resized image versions are saved to the same directory as the source image. This feature would make this behaviour configurable to a specific directory.

var options = {
  path: "/tmp/"
};

var image = './foo.jpg';

resize(image, versions, options, function(err, versions) {
  console.log(versions[0].path); // /tmp/foo-small.jpg
});