]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_upload.php
modified: view/theme/smoothly/style.css
[friendica.git] / mod / wall_upload.php
index 5990f28344b92b0c2007538d159e3aac15f6647e..07d97d17a9e21fa15809a7f325d81c554409657d 100644 (file)
@@ -101,8 +101,15 @@ function wall_upload_post(&$a) {
                killme();
        }
 
+       $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();