Merge https://github.com/friendica/friendica into pull
This commit is contained in:
commit
b550b1326b
9 changed files with 31 additions and 7 deletions
|
@ -743,6 +743,12 @@ function photos_post(&$a) {
|
|||
$ph->orient($src);
|
||||
@unlink($src);
|
||||
|
||||
$max_length = get_config('system','max_image_length');
|
||||
if(! $max_length)
|
||||
$max_length = MAX_IMAGE_LENGTH;
|
||||
if($max_length > 0)
|
||||
$ph->scaleImage($max_length);
|
||||
|
||||
$width = $ph->getWidth();
|
||||
$height = $ph->getHeight();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue