From 8ce3e44d7bf737307354e337fe5b404fb4465b56 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 27 Apr 2014 17:40:39 -0400 Subject: [PATCH] closes #1418 --- src/image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/image.js b/src/image.js index 7539840fde..0d6fd8c75b 100644 --- a/src/image.js +++ b/src/image.js @@ -19,7 +19,8 @@ image.resizeImage = function(path, extension, width, height, callback) { .write(path, done); } else { gm(path) - .resize(width, height) + .gravity('Center') + .crop(width, height) .write(path, done); } };