some initial work on uploading and cropping cover photos

This commit is contained in:
redmatrix
2016-01-13 17:32:09 -08:00
parent 86b550e43e
commit 9584ca080c
6 changed files with 121 additions and 2 deletions

View File

@@ -502,8 +502,8 @@ function profile_photo_crop_ui_head(&$a, $ph, $hash, $smallest){
$width = $ph->getWidth();
$height = $ph->getHeight();
if($width < 300 || $height < 300) {
$ph->scaleImageUp(200);
if($width < 500 || $height < 500) {
$ph->scaleImageUp(400);
$width = $ph->getWidth();
$height = $ph->getHeight();
}