Browse Source

raising profile photo size to comply with frio sidebar profile photo

skaling
pull/6009/head
vinzv 2 years ago
parent
commit
cbc898d902
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mod/profile_photo.php

+ 2
- 2
mod/profile_photo.php View File

@ -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);


Loading…
Cancel
Save