From cd1702908ffc658b3c170e91d010f8464e9ba3fa Mon Sep 17 00:00:00 2001 From: ildyria Date: Mon, 28 Nov 2022 20:26:08 +0100 Subject: [PATCH] simple check --- app/Actions/Diagnostics/Pipes/Checks/GDSupportCheck.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Actions/Diagnostics/Pipes/Checks/GDSupportCheck.php b/app/Actions/Diagnostics/Pipes/Checks/GDSupportCheck.php index 17d7f33c415..5aa7974efaa 100644 --- a/app/Actions/Diagnostics/Pipes/Checks/GDSupportCheck.php +++ b/app/Actions/Diagnostics/Pipes/Checks/GDSupportCheck.php @@ -28,6 +28,11 @@ public function handle(array &$data, \Closure $next): array $data[] = 'Error: PHP gd extension without full gif support'; // @codeCoverageIgnoreEnd } + if (!$gdVersion['WebP Support']) { + // @codeCoverageIgnoreStart + $data[] = 'Error: PHP gd extension without WebP support'; + // @codeCoverageIgnoreEnd + } } return $next($data);