diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index e0d969f..f7fe588 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -74,9 +74,13 @@ class PublicController extends BaseController //Resize if($size == "small") { + $start = microtime(true); $image = ImageResize::createFromString($file); $image->resizeToLongSide(self::SIZE_SMALL); Storage::disk("cache")->put($cacheName."_small", $image->getImageAsString()); + $ende = microtime(true); + Log::info("Dauer umwandlung: ".($ende-$start)); + Log::info("Gesamtzeit: ".(microtime(true)-$globalstart)); return Storage::disk('cache')->response($cacheName."_small"); } if($size == "medium") { @@ -91,9 +95,13 @@ class PublicController extends BaseController } if($size == "big") { + $start = microtime(true); $image = ImageResize::createFromString($file); $image->resizeToLongSide(self::SIZE_BIG); Storage::disk("cache")->put($cacheName."_big", $image->getImageAsString()); + $ende = microtime(true); + Log::info("Dauer umwandlung: ".($ende-$start)); + Log::info("Gesamtzeit: ".(microtime(true)-$globalstart)); return Storage::disk('cache')->response($cacheName."_big"); }