mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
9 lines
238 B
PHP
9 lines
238 B
PHP
<?php
|
|
|
|
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;
|
|
exit($true ? 0 : 1);
|