lansghy 发表于 2024-3-29 15:15:10

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

环境: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()

lansghy 发表于 2024-3-29 15:28:32

/lnmp1.7# /usr/local/php/bin/php -i |grep configure
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'
页: [1]
查看完整版本: 错误:Uncaught Error: Call to undefined function imagecreatefromwebp()