From cbc898d90296fba04b01772cef6f553eee7616cd Mon Sep 17 00:00:00 2001 From: vinzv Date: Tue, 23 Oct 2018 14:30:21 +0200 Subject: [PATCH 1/3] 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); From 95f9337e0e9e681a2e4610f21f2871a43ca1feb8 Mon Sep 17 00:00:00 2001 From: vinzv Date: Tue, 23 Oct 2018 15:16:58 +0200 Subject: [PATCH 2/3] adapted 300px image size for default avatar --- images/person-300.jpg | Bin 0 -> 11319 bytes mod/dfrn_confirm.php | 2 +- mod/photo.php | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 images/person-300.jpg diff --git a/images/person-300.jpg b/images/person-300.jpg new file mode 100644 index 0000000000000000000000000000000000000000..817308211344100b5b548adb1e3541a38ef3f746 GIT binary patch literal 11319 zcmch7bx@qm((fX{J-93yBuKEuA;BS72=21@Vv7?X5Fog_6C@!7U)+Q3;)D=Zf9UTo54Feq$1NYBA7yxw4M`&2sIJkJEWRJ-ym<3p5DTU;;S>J_H zQ9lvXv4VOQ{~1XBFC70b=f7G>|2fY;TIT@-7=IQ)ia`o^4k+wpVPauH|Nlo4L~|Im zIm|jNeyFZ5OE4%)UySeJ2CJjmOj_n(<9ttxw3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7e~)fvY& z9qGxtn6Tt)mQeoO!-yvFcC9~vfF4YJd6zY>4eFY^_!B93dw(S>sr#P=LlJBUjAMxH zKUnIhMKCW0jG5X>2$xy<2jWTsdx%YMlq2mAT(!t-TE>|c3hgpk19C%AMCoz~#1#N) z(eP?`Dla^kDoNrf&|d6rA=5J=nQmj{VjRlK`)A|q?HQM_-F~(0)He_lNL#;?aI3i@@0)O2UlSXb{dCc%ts&`>>}4h}N}n#^X%JC@ zH?xC2;&9k}9H)y*%C>@!b}k=X3B>imkfI9^oPXw;;4uInH9U189#{UXl#_&=h~Ay$ z_%Yl=<&5shVkx_tN7jvw#wXH%7jr+O9|ND2%e_Ub8 zvD43$!NF@n4JQ?7+1T%bdom+|^vD|nZBM&ch*RL^5hSP>IgrlHdpS}Va*H)XI_hd8 z(HOi14m-G^L4h0cp1-nFDr|8e+g~4JGU0T8l6**yI}wFa_WIOc$0pQ*&Odl7^!p_} zn4Q|w&oEAm2fS7C%GCeHgQ8__g;%%;{otN8T@?LM8dFUa*W~@Je5#;a@IR| zHFYH!|5=XoF4%DW>-7Hn#{^&Ne}X-!(0s5HonvW!FC#mvT?LE&#XS#vnr|18;60tL zVdE#%#1&uY%l6!U4lI!MXZG9Wi`#|J)CCL(-JR=w`la^2jQe++ahkS}jZ zqoEN%MRI_J-Js~_ZpBD#1r%&-y+I$nX>mm~2_?F%EctlJo_==xu%G5Ne-1Vuo~O;( ybGjg%^{2tArnc;N1S0E+0$!l4jrY+-O45weF4`|J>itK{@(%(1kCg>K%>6GTRP}fO literal 0 HcmV?d00001 diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index f685d9e237..c411059664 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -537,7 +537,7 @@ function dfrn_confirm_post(App $a, $handsfree = null) if (DBA::isResult($contact)) { $photo = $contact['photo']; } else { - $photo = System::baseUrl() . '/images/person-175.jpg'; + $photo = System::baseUrl() . '/images/person-300.jpg'; } Contact::updateAvatar($photo, $local_uid, $dfrn_record); diff --git a/mod/photo.php b/mod/photo.php index 083b7cfc99..54418f730d 100644 --- a/mod/photo.php +++ b/mod/photo.php @@ -51,7 +51,7 @@ function photo_init(App $a) exit; } - $default = 'images/person-175.jpg'; + $default = 'images/person-300.jpg'; $public = true; if (isset($type)) { @@ -137,7 +137,7 @@ function photo_init(App $a) if (isset($resolution)) { switch ($resolution) { case 4: - $data = file_get_contents('images/person-175.jpg'); + $data = file_get_contents('images/person-300.jpg'); $mimetype = 'image/jpeg'; break; case 5: From cb75c40f4e041b30c64de93530c63e841b4b1504 Mon Sep 17 00:00:00 2001 From: vinzv Date: Tue, 23 Oct 2018 16:36:57 +0200 Subject: [PATCH 3/3] adapted profile pic resize to 300px for whole system --- doc/api.md | 2 +- include/api.php | 6 +++--- mod/profile_photo.php | 2 +- src/Core/NotificationsManager.php | 4 ++-- src/Model/Contact.php | 2 +- src/Model/GContact.php | 2 +- src/Model/Photo.php | 4 ++-- src/Model/User.php | 2 +- src/Module/Proxy.php | 2 +- src/Network/Probe.php | 2 +- src/Protocol/DFRN.php | 2 +- src/Protocol/OStatus.php | 8 ++++---- src/Util/Network.php | 4 ++-- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/doc/api.md b/doc/api.md index 07813b6a77..2715f44462 100644 --- a/doc/api.md +++ b/doc/api.md @@ -1061,7 +1061,7 @@ possibile scale value are: * 1: image with or height at <= 640 * 2: image with or height at <= 320 * 3: thumbnail 160x160 -* 4: Profile image at 175x175 +* 4: Profile image at 300x300 * 5: Profile image at 80x80 * 6: Profile image at 48x48 diff --git a/include/api.php b/include/api.php index 7e54fa382a..86f2e3b2a4 100644 --- a/include/api.php +++ b/include/api.php @@ -4556,11 +4556,11 @@ function save_media_to_database($mediatype, $media, $type, $album, $allow_cid, $ // upload profile image (scales 4, 5, 6) logger("photo upload: starting new profile image upload", LOGGER_DEBUG); - if ($width > 175 || $height > 175) { - $Image->scaleDown(175); + if ($width > 300 || $height > 300) { + $Image->scaleDown(300); $r = Photo::store($Image, local_user(), $visitor, $hash, $filename, $album, 4, $profile, $allow_cid, $allow_gid, $deny_cid, $deny_gid, $desc); if (!$r) { - logger("photo upload: profile image upload with scale 4 (175x175) failed"); + logger("photo upload: profile image upload with scale 4 (300x300) failed"); } } diff --git a/mod/profile_photo.php b/mod/profile_photo.php index 0d692a6600..da45226fe0 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -288,7 +288,7 @@ function profile_photo_crop_ui_head(App $a, Image $image) $height = $image->getHeight(); if ($width < 175 || $height < 175) { - $image->scaleUp(200); + $image->scaleUp(300); $width = $image->getWidth(); $height = $image->getHeight(); } diff --git a/src/Core/NotificationsManager.php b/src/Core/NotificationsManager.php index fb77605730..9250bc2e5b 100644 --- a/src/Core/NotificationsManager.php +++ b/src/Core/NotificationsManager.php @@ -642,7 +642,7 @@ class NotificationsManager extends BaseObject 'madeby_zrl' => Contact::magicLink($it['url']), 'madeby_addr' => $it['addr'], 'contact_id' => $it['contact-id'], - 'photo' => ((x($it, 'fphoto')) ? ProxyUtils::proxifyUrl($it['fphoto'], false, ProxyUtils::SIZE_SMALL) : "images/person-175.jpg"), + 'photo' => ((x($it, 'fphoto')) ? ProxyUtils::proxifyUrl($it['fphoto'], false, ProxyUtils::SIZE_SMALL) : "images/person-300.jpg"), 'name' => $it['fname'], 'url' => $it['furl'], 'zrl' => Contact::magicLink($it['furl']), @@ -674,7 +674,7 @@ class NotificationsManager extends BaseObject 'uid' => $_SESSION['uid'], 'intro_id' => $it['intro_id'], 'contact_id' => $it['contact-id'], - 'photo' => ((x($it, 'photo')) ? ProxyUtils::proxifyUrl($it['photo'], false, ProxyUtils::SIZE_SMALL) : "images/person-175.jpg"), + 'photo' => ((x($it, 'photo')) ? ProxyUtils::proxifyUrl($it['photo'], false, ProxyUtils::SIZE_SMALL) : "images/person-300.jpg"), 'name' => $it['name'], 'location' => BBCode::convert($it['glocation'], false), 'about' => BBCode::convert($it['gabout'], false), diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 3524cd4ce1..fdb49ac133 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -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'; } diff --git a/src/Model/GContact.php b/src/Model/GContact.php index 20e6f0751e..cc77753779 100644 --- a/src/Model/GContact.php +++ b/src/Model/GContact.php @@ -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; diff --git a/src/Model/Photo.php b/src/Model/Photo.php index 6b094ded6c..a9b4c0fb73 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -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'; } diff --git a/src/Model/User.php b/src/Model/User.php index 27ed28fd4f..bdea5e28f0 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -642,7 +642,7 @@ class User $Image = new Image($img_str, $type); if ($Image->isValid()) { - $Image->scaleToSquare(175); + $Image->scaleToSquare(300); $hash = Photo::newResource(); diff --git a/src/Module/Proxy.php b/src/Module/Proxy.php index 8c3493b2ad..29e0f4f52f 100644 --- a/src/Module/Proxy.php +++ b/src/Module/Proxy.php @@ -103,7 +103,7 @@ class Proxy extends BaseModule $sizetype = ':thumb'; $url = substr($url, 0, -6); } elseif (substr($url, -6) == ':small') { - $size = 175; + $size = 300; $url = substr($url, 0, -6); $sizetype = ':small'; } elseif (substr($url, -7) == ':medium') { diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 08ec4ae1c8..f892c3a5cc 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -348,7 +348,7 @@ class Probe if (x($data, "photo")) { $data["baseurl"] = Network::getUrlMatch(normalise_link(defaults($data, "baseurl", "")), normalise_link($data["photo"])); } else { - $data["photo"] = System::baseUrl().'/images/person-175.jpg'; + $data["photo"] = System::baseUrl().'/images/person-300.jpg'; } if (empty($data["name"])) { diff --git a/src/Protocol/DFRN.php b/src/Protocol/DFRN.php index e8cf4a631a..1dcc1197a5 100644 --- a/src/Protocol/DFRN.php +++ b/src/Protocol/DFRN.php @@ -646,7 +646,7 @@ class DFRN XML::addElement($doc, $author, "dfrn:handle", $owner["addr"], $attributes); $attributes = ["rel" => "photo", "type" => "image/jpeg", - "media:width" => 175, "media:height" => 175, "href" => $owner['photo']]; + "media:width" => 300, "media:height" => 300, "href" => $owner['photo']]; if (!$public || !$hidewall) { $attributes["dfrn:updated"] = $picdate; diff --git a/src/Protocol/OStatus.php b/src/Protocol/OStatus.php index 0e3d5e6c0f..fb78d2ebbe 100644 --- a/src/Protocol/OStatus.php +++ b/src/Protocol/OStatus.php @@ -1450,8 +1450,8 @@ class OStatus $attributes = [ "rel" => "avatar", "type" => "image/jpeg", // To-Do? - "media:width" => 175, - "media:height" => 175, + "media:width" => 300, + "media:height" => 300, "href" => $owner["photo"]]; XML::addElement($doc, $author, "link", "", $attributes); @@ -1769,8 +1769,8 @@ class OStatus $attributes = [ "rel" => "avatar", "type" => "image/jpeg", // To-Do? - "media:width" => 175, - "media:height" => 175, + "media:width" => 300, + "media:height" => 300, "href" => $contact["photo"]]; XML::addElement($doc, $object, "link", "", $attributes); diff --git a/src/Util/Network.php b/src/Util/Network.php index 1038fa3f04..3b27a0550a 100644 --- a/src/Util/Network.php +++ b/src/Util/Network.php @@ -516,7 +516,7 @@ class Network public static function lookupAvatarByEmail($email) { - $avatar['size'] = 175; + $avatar['size'] = 300; $avatar['email'] = $email; $avatar['url'] = ''; $avatar['success'] = false; @@ -524,7 +524,7 @@ class Network Addon::callHooks('avatar_lookup', $avatar); if (! $avatar['success']) { - $avatar['url'] = System::baseUrl() . '/images/person-175.jpg'; + $avatar['url'] = System::baseUrl() . '/images/person-300.jpg'; } logger('Avatar: ' . $avatar['email'] . ' ' . $avatar['url'], LOGGER_DEBUG);