VPS侦探论坛

 找回密码
 注册
查看: 245|回复: 1

错误:Uncaught Error: Call to undefined function imagecreatefromwebp()

[复制链接]
发表于 2024-3-29 15:15:10 | 显示全部楼层 |阅读模式

环境:debian,lnmp1.7,php7.1.33



php 代码:


function webp2Jpeg($source, $destination){$source_image = imagecreatefromwebp($source);//echo imagecreatefromwebp($source);imagejpeg($source_image, $destination, 80);imagedestroy($source_image);}


出错:
Uncaught Error: Call to undefined function imagecreatefromwebp()
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2024-3-29 15:28:32 | 显示全部楼层


  1. /lnmp1.7# /usr/local/php/bin/php -i |grep configure
  2. Configure Command =>  './configure'  '--prefix=/usr/local/php' '--with-config-file-path=/usr/local/php/etc' '--with-config-file-scan-dir=/usr/local/php/conf.d' '--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www' '--enable-mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-iconv-dir' '--with-freetype-dir=/usr/local/freetype' '--with-jpeg-dir' '--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml' '--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem' '--enable-inline-optimization' '--with-curl' '--enable-mbregex' '--enable-mbstring' '--enable-intl' '--with-mcrypt' '--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl' '--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap' '--with-gettext' '--enable-opcache' '--with-xsl'
复制代码
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-16 16:16 , Processed in 0.039039 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表