위 사진과 같은 WEBP 사진을 올리면
PHP Fatal Error: gd-webp cannot allocate temporary buffer in \classes\file\FileHandler.class.php on line 577
이런 오류가 나옵니다 . 뭐가 문제일까요?
서버 환경은 윈도우 비트나미 WAMP 입니다.
577번째 줄을 보면
// create temporary image having original type
if ($type === 'gif' && function_exists('imagecreatefromgif'))
{
$source = @imagecreatefromgif($source_file);
}
elseif ($type === 'jpg' && function_exists('imagecreatefromjpeg'))
{
$source = @imagecreatefromjpeg($source_file);
}
elseif ($type === 'png' && function_exists('imagecreatefrompng'))
{
$source = @imagecreatefrompng($source_file);
}
elseif ($type === 'bmp' && function_exists('imagecreatefrombmp'))
{
$source = @imagecreatefrombmp($source_file);
}
elseif ($type === 'webp' && function_exists('imagecreatefromwebp'))
{
$source = @imagecreatefromwebp($source_file); 577번째 문장
}
else
{
return false;
}
GD라이브러리랑 WEBP랑 문제 있는걸까요?