fit image to 128x128 and keep aspect ratio, closes #1240

v1.18.x
barisusakli 11 years ago
parent 6a4dd5cc05
commit 6774f0f52f

@ -19,7 +19,7 @@ image.resizeImage = function(path, extension, width, height, callback) {
.write(path, done); .write(path, done);
} else { } else {
gm(path) gm(path)
.crop(width, height, 0, 0) .resize(width, height)
.write(path, done); .write(path, done);
} }
}; };

Loading…
Cancel
Save