From cbc898d90296fba04b01772cef6f553eee7616cd Mon Sep 17 00:00:00 2001 From: vinzv Date: Tue, 23 Oct 2018 14:30:21 +0200 Subject: [PATCH] raising profile photo size to comply with frio sidebar profile photo skaling --- mod/profile_photo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 19188ba23e..0d692a6600 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -80,13 +80,13 @@ function profile_photo_post(App $a) $Image = new Image($base_image['data'], $base_image['type']); if ($Image->isValid()) { - $Image->crop(175, $srcX, $srcY, $srcW, $srcH); + $Image->crop(300, $srcX, $srcY, $srcW, $srcH); $r = Photo::store($Image, local_user(), 0, $base_image['resource-id'], $base_image['filename'], L10n::t('Profile Photos'), 4, $is_default_profile); if ($r === false) { - notice(L10n::t('Image size reduction [%s] failed.', "175") . EOL); + notice(L10n::t('Image size reduction [%s] failed.', "300") . EOL); } $Image->scaleDown(80); -- 2.39.5