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

This commit is contained in:
barisusakli
2014-03-18 14:27:00 -04:00
parent 6a4dd5cc05
commit 6774f0f52f

View File

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