Turistforeningen / node-im-resize

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

Image versions name prefix #3

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 = {
  prefix: "im-"
};

var image = './foo.jpg';

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