mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 08:25:46 +01:00
closes #1418
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user