This commit is contained in:
barisusakli
2014-08-13 18:25:26 -04:00
parent f562caaa61
commit 5c84a3adb5
3 changed files with 7 additions and 2 deletions

View File

@@ -63,6 +63,10 @@
"field": "maximumProfileImageSize",
"value": 256
},
{
"field": "profileImageDimension",
"value": 128
},
{
"field": "chatMessagesToDisplay",
"value": 50

View File

@@ -398,10 +398,11 @@ accountsController.uploadPicture = function (req, res, next) {
}
var updateUid = req.user.uid;
var imageDimension = parseInt(meta.config.profileImageDimension, 10) || 128;
async.waterfall([
function(next) {
image.resizeImage(req.files.userPhoto.path, extension, 128, 128, next);
image.resizeImage(req.files.userPhoto.path, extension, imageDimension, imageDimension, next);
},
function(next) {
if (parseInt(meta.config['profile:convertProfileImageToPNG'], 10) === 1) {

View File

@@ -279,7 +279,7 @@ var
}
var options = {
size: '128',
size: parseInt(meta.config.profileImageDimension, 10) || 128,
default: customGravatarDefaultImage || meta.config.defaultGravatarImage || 'identicon',
rating: 'pg'
};