mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-26 21:56:35 +02:00
Replace jimp with sharp (#6774)
* add probe image size and max image size * replace jimp and image-probe with sharp * better name for test * resize with just path * resize thumb inplace * use filename
This commit is contained in:
committed by
GitHub
parent
69c7260fe9
commit
b7ead6dc9c
@@ -123,11 +123,9 @@ module.exports = function (User) {
|
||||
},
|
||||
function (path, next) {
|
||||
picture.path = path;
|
||||
|
||||
var imageDimension = parseInt(meta.config.profileImageDimension, 10) || 200;
|
||||
image.resizeImage({
|
||||
path: picture.path,
|
||||
extension: extension,
|
||||
width: imageDimension,
|
||||
height: imageDimension,
|
||||
}, next);
|
||||
|
||||
Reference in New Issue
Block a user