Commit 93b4f5b4 authored by catch's avatar catch
Browse files

Issue #3526690 by cilefen, xmacinfo, andypost, grimreaper, mstrelan: Call to...

Issue #3526690 by cilefen, xmacinfo, andypost, grimreaper, mstrelan: Call to undefined function Drupal\system\Plugin\ImageToolkit\imageavif()

(cherry picked from commit a00c032c)
parent 749a119e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -562,7 +562,7 @@ protected static function checkAvifSupport(): bool {
    }

    $tempFile = fopen('php://memory', 'r+');
    $supported = imageavif(imagecreatetruecolor(1, 1), $tempFile, 0, 10) && fstat($tempFile)['size'] > 0;
    $supported = function_exists('imageavif') && imageavif(imagecreatetruecolor(1, 1), $tempFile, 0, 10) && fstat($tempFile)['size'] > 0;
    fclose($tempFile);

    return $supported;