fix gd check

This commit is contained in:
crazywhalecc
2023-04-09 13:24:52 +08:00
parent a7d500422d
commit 62aeb6dc7b

View File

@@ -3,6 +3,5 @@
declare(strict_types=1);
$info = gd_info();
$true = $info['JPEG Support'] ?? true; // JPEG support needs libjpeg library, and I will add it later. TODO
$true = $true ? ($info['PNG Support'] ?? false) : false;
$true = ($true ?? true) && ($info['PNG Support'] ?? false);
exit($true ? 0 : 1);