mirror of
https://github.com/friendica/friendica
synced 2025-04-19 06:30:10 +00:00
adapted profile pic resize to 300px for whole system
This commit is contained in:
parent
95f9337e0e
commit
cb75c40f4e
13 changed files with 21 additions and 21 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue