PHPで画像をWEBP変換をしたいのですが、エラーが出てしまいます。
コード
imagewebp($image, $imagePass);
エラー内容
Fatal Error (1): Call to undefined function imagewebp() in ...
phpドキュメントで最低バージョンを確認したところ、PHP 5 >= 5.4.0, PHP 7 となっていて、今、自分のphpバージョンがPHP 5.6.32でしたので、バージョン的にはクリアできています。
解決方法として考えられるものがあれば教えていただきたいです。
gd_info()の結果
[GD Version] => bundled (2.1.0 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => 1 [GIF Read Support] => 1 [GIF Create Support] => 1 [JPEG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XPM Support] => [XBM Support] => 1 [WebP Support] => [JIS-mapped Japanese Font Support] =>
環境
LINUX、macOS Mojave
回答3件
あなたの回答
tips
プレビュー