From 6774f0f52fa17c6b3bb1a631e56dbc815ebd88a7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 18 Mar 2014 14:27:00 -0400 Subject: [PATCH] fit image to 128x128 and keep aspect ratio, closes #1240 --- src/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.js b/src/image.js index 5f92773fa8..49160dd45a 100644 --- a/src/image.js +++ b/src/image.js @@ -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); } };