From 50bf79a800297baca197b458a4e193a2d38c7b0a Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Mon, 13 Feb 2023 21:12:44 +0100 Subject: [PATCH] Update findfile.php --- app/Functions/findfile.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Functions/findfile.php b/app/Functions/findfile.php index 8118784..9517f55 100644 --- a/app/Functions/findfile.php +++ b/app/Functions/findfile.php @@ -29,8 +29,7 @@ function analyzeImageBrightness($file) { // Get image information using getimagesize $imageInfo = getimagesize($file); if (!$imageInfo) { - echo "Error: Unable to get image information.\n"; - exit(); + return 'dark'; } // Get the image type @@ -46,8 +45,7 @@ function analyzeImageBrightness($file) { $img = imagecreatefrompng($file); break; default: - echo "Error: Unsupported image type.\n"; - exit(); + return 'dark'; } // Get image dimensions