From 4e0ccbf0c6c775f9e80f617d83751657e4389b77 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sat, 10 May 2014 23:56:45 -0400 Subject: [PATCH] fixed #1515 --- src/image.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/image.js b/src/image.js index 0d6fd8c75b..73bb85599d 100644 --- a/src/image.js +++ b/src/image.js @@ -15,10 +15,12 @@ image.resizeImage = function(path, extension, width, height, callback) { gm().in(path) .in('-coalesce') .in('-resize') - .in(width+'x'+height) + .in(width+'x'+height+'^') .write(path, done); } else { gm(path) + .in('-resize') + .in(width+'x'+height+'^') .gravity('Center') .crop(width, height) .write(path, done);