Update findfile.php

This commit is contained in:
Julian Prieber 2023-02-13 21:12:44 +01:00
parent 9e35b2155b
commit 50bf79a800

View File

@ -29,8 +29,7 @@ function analyzeImageBrightness($file) {
// Get image information using getimagesize // Get image information using getimagesize
$imageInfo = getimagesize($file); $imageInfo = getimagesize($file);
if (!$imageInfo) { if (!$imageInfo) {
echo "Error: Unable to get image information.\n"; return 'dark';
exit();
} }
// Get the image type // Get the image type
@ -46,8 +45,7 @@ function analyzeImageBrightness($file) {
$img = imagecreatefrompng($file); $img = imagecreatefrompng($file);
break; break;
default: default:
echo "Error: Unsupported image type.\n"; return 'dark';
exit();
} }
// Get image dimensions // Get image dimensions