]> git.mxchange.org Git - friendica-addons.git/commitdiff
privacy_image_cache: removed experimentual resize of pictures
authorMichael Vogel <icarus@dabo.de>
Wed, 25 Jul 2012 21:44:57 +0000 (23:44 +0200)
committerMichael Vogel <icarus@dabo.de>
Wed, 25 Jul 2012 21:44:57 +0000 (23:44 +0200)
privacy_image_cache/privacy_image_cache.php

index e74054e9f5a92bb5241a58785ae9ec9a2e635132..963b8f77adb10ec65edb82212cbaff9ce53ce390 100644 (file)
@@ -80,13 +80,13 @@ function privacy_image_cache_init() {
                if ($mime == "") $mime = "image/jpeg";
 
                // Test
-               if ($mime == "image/jpeg") {
-                       $img = new Photo($img_str);
-                       if($img->is_valid()) {
-                               $img->scaleImage(1000);
-                               $img_str = $img->imageString();
-                       }
-               }
+               //if ($mime == "image/jpeg") {
+               //      $img = new Photo($img_str);
+               //      if($img->is_valid()) {
+               //              $img->scaleImage(1000);
+               //              $img_str = $img->imageString();
+               //      }
+               //}
        } else {
                // It shouldn't happen but it does - spaces in URL
                $_REQUEST['url'] = str_replace(" ", "+", $_REQUEST['url']);