Skip to content

Node.js based forum software built for the modern web

closes #1418

barisusakli8ce3e44d7bf7
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);
}
};