adapted profile pic resize to 300px for whole system

This commit is contained in:
vinzv 2018-10-23 16:36:57 +02:00
parent 95f9337e0e
commit cb75c40f4e
13 changed files with 21 additions and 21 deletions

View file

@ -465,7 +465,7 @@ class Contact extends BaseObject
$fields['micro'] = $prefix . '6' . $suffix;
} else {
// We hadn't found a photo entry, so we use the default avatar
$fields['photo'] = System::baseUrl() . '/images/person-175.jpg';
$fields['photo'] = System::baseUrl() . '/images/person-300.jpg';
$fields['thumb'] = System::baseUrl() . '/images/person-80.jpg';
$fields['micro'] = System::baseUrl() . '/images/person-48.jpg';
}

View file

@ -995,7 +995,7 @@ class GContact
"addr" => $user->nickname."@".$hostname,
"nick" => $user->nickname,
"network" => Protocol::OSTATUS,
"photo" => System::baseUrl()."/images/person-175.jpg"];
"photo" => System::baseUrl()."/images/person-300.jpg"];
if (isset($user->bio)) {
$contact["about"] = $user->bio;

View file

@ -115,7 +115,7 @@ class Photo
$type = Image::guessType($image_url, true);
$Image = new Image($img_str, $type);
if ($Image->isValid()) {
$Image->scaleToSquare(175);
$Image->scaleToSquare(300);
$r = self::store($Image, $uid, $cid, $hash, $filename, 'Contact Photos', 4);
@ -172,7 +172,7 @@ class Photo
}
if ($photo_failure) {
$image_url = System::baseUrl() . '/images/person-175.jpg';
$image_url = System::baseUrl() . '/images/person-300.jpg';
$thumb = System::baseUrl() . '/images/person-80.jpg';
$micro = System::baseUrl() . '/images/person-48.jpg';
}

View file

@ -642,7 +642,7 @@ class User
$Image = new Image($img_str, $type);
if ($Image->isValid()) {
$Image->scaleToSquare(175);
$Image->scaleToSquare(300);
$hash = Photo::newResource();