Skip to content

Node.js based forum software built for the modern web

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

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