This commit is contained in:
friendica 2012-07-03 16:26:58 -07:00
commit b550b1326b
9 changed files with 31 additions and 7 deletions

View file

@ -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();