Update findfile.php

This commit is contained in:
Julian Prieber 2023-02-13 21:12:44 +01:00
parent 9e35b2155b
commit 50bf79a800
1 changed files with 2 additions and 4 deletions

View File

@ -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