mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fit image to 128x128 and keep aspect ratio, closes #1240
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user