aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo/photo_driver.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-07-20 21:01:11 +0200
committerMario Vavti <mario@mariovavti.com>2015-07-20 21:01:11 +0200
commit4d45bc9da185c4c8f558b07f8020dce8171fb957 (patch)
treeb3b8884bfd9485dd0af8efba48aadc3245e05851 /include/photo/photo_driver.php
parent464625cd9107a82785bca40eb771a5c1149d8f2d (diff)
downloadvolse-hubzilla-4d45bc9da185c4c8f558b07f8020dce8171fb957.tar.gz
volse-hubzilla-4d45bc9da185c4c8f558b07f8020dce8171fb957.tar.bz2
volse-hubzilla-4d45bc9da185c4c8f558b07f8020dce8171fb957.zip
Fixes regarding the new default profile photo size. The default profile photos are just renamed. People which provided the originals are invited to reproduce them in the new 300 by 300 px format.
Diffstat (limited to 'include/photo/photo_driver.php')
-rw-r--r--include/photo/photo_driver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index 6f508bf72..5d61556ab 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -606,16 +606,16 @@ function import_profile_photo($photo,$xchan,$thing = false) {
if(($width / $height) > 1.2) {
// crop out the sides
$margin = $width - $height;
- $img->cropImage(175,($margin / 2),0,$height,$height);
+ $img->cropImage(300,($margin / 2),0,$height,$height);
}
elseif(($height / $width) > 1.2) {
// crop out the bottom
$margin = $height - $width;
- $img->cropImage(175,0,0,$width,$width);
+ $img->cropImage(300,0,0,$width,$width);
}
else {
- $img->scaleImageSquare(175);
+ $img->scaleImageSquare(300);
}
}
@@ -682,7 +682,7 @@ function import_channel_photo($photo,$type,$aid,$uid) {
$img = photo_factory($photo, $type);
if($img->is_valid()) {
- $img->scaleImageSquare(175);
+ $img->scaleImageSquare(300);
$p = array('aid' => $aid, 'uid' => $uid, 'resource_id' => $hash, 'filename' => $filename, 'album' => t('Profile Photos'), 'photo_flags' => PHOTO_PROFILE, 'scale' => 4);