mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-04-24 07:07:19 +02: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
|
// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user