
[1] ErrorException in common.php line 128
gd-webp cannot get webp info
异常捕获都无法 获取错误
if (strstr($filepath, '.webp')) {
try {
@$image = @imagecreatefromwebp($filepath);
} catch (\think\exception\ErrorException $e) {
echo '错误';
}
if ($image) {
return $image;
}
}