mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-09 08:38:49 +01:00
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…
x
Reference in New Issue
Block a user