Update findfile.php
This commit is contained in:
parent
9e35b2155b
commit
50bf79a800
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue