Author Topic: GD Webp Support  (Read 5082 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
GD Webp Support
« on: November 02, 2021, 12:36:08 AM »
Hi in the PHP fpm selector I selected the option - gd-webp enable support for WebP, is an image format employing both lossy and lossless compression. in the options

Then i enabled it in php7.3 tick the box and compiled it but I still say no gd webp not installed.



I also reset the options then select it and recompiled it but still, it stays not support

how can fix this so that it works

thanks in advance fr any help

Offline
***
Re: GD Webp Support
« Reply #1 on: November 02, 2021, 03:36:33 AM »
Hi,

Looks like I'm having a problem similar to yours.
I'm waiting answer from customer, if the problem was solved.
Searching about in internet, seems the problem is due to use nginx as a proxy, in scheme: nginx <-> varnish <-> apache

Perhaps, are you using nginx & varnish & apache scheme.?

If so, the static pages are being served by nginx, to speed up loading pages, and not by apache.
So, you can try to exclude images extensions from you nginx configuration, to make apache serve it.

Depending on the template you are using, you can simply remove extensions from the location directive.

Regards,
Netino

Offline
*
Re: GD Webp Support
« Reply #2 on: November 02, 2021, 03:58:40 AM »
No I am running Apache php-fpm 7.3

Offline
***
Re: GD Webp Support
« Reply #3 on: November 02, 2021, 04:28:20 AM »
Did you check the info.php file?
The default installation of PHP already have GD webp support.

Sorry for the aparent redundancy, but no nginx, and no Varnish?
Apache can still be used without varnish, without nginx, and without any other, apache only.
It's apache only?

If so, check your 'Vary' headers returned in your

Offline
*
Re: GD Webp Support
« Reply #4 on: November 02, 2021, 06:15:38 AM »
$_SERVER['HTTP_ACCEPT']   text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9

gd
GD Support   enabled
GD Version   bundled (2.1.0 compatible)
FreeType Support   enabled
FreeType Linkage   with freetype
FreeType Version   2.8.0
GIF Read Support   enabled
GIF Create Support   enabled
JPEG Support   enabled
libJPEG Version   6b
PNG Support   enabled
libPNG Version   1.5.13
WBMP Support   enabled
XPM Support   enabled
libXpm Version   30411
XBM Support   enabled
JIS-mapped Japanese Font Support   enabled


was working fine when I on cpanel but now nothing

Offline
*
Re: GD Webp Support
« Reply #5 on: November 02, 2021, 06:31:37 AM »
ok, I can load a .webp image on the server so it looks like the script may be the issue. but weird nothing has been changed at all. the script works.

on page load, if not exist the webp image will create it on the fly

also if the browser can not support webp it will fall back to the old image format.

so I'm not sure what going on now. as on Cpanel it worked perfectly I may be forced to go back to Cpanel but I don't want to.
« Last Edit: November 02, 2021, 06:42:46 AM by annettek »

Offline
*
Re: GD Webp Support
« Reply #6 on: November 03, 2021, 02:28:41 AM »
i just had it checked and certinally it should be Installed but its not at all

gd
GD Support   enabled
GD Version   bundled (2.1.0 compatible)
FreeType Support   enabled
FreeType Linkage   with freetype
FreeType Version   2.8.0
GIF Read Support   enabled
GIF Create Support   enabled
JPEG Support   enabled
libJPEG Version   6b
PNG Support   enabled
libPNG Version   1.5.13
WBMP Support   enabled
XPM Support   enabled
libXpm Version   30411
XBM Support   enabled
JIS-mapped Japanese Font Support   enabled

not in the list that's why my script does not pick it u and work.

Offline
***
Re: GD Webp Support
« Reply #7 on: November 04, 2021, 12:48:37 AM »
This is my configuration (default from CWP):

==================================
Configure Command =>  './configure'  '--with-config-file-path=/usr/local/php' '--with-config-file-scan-dir=/usr/local/php/php.d' '--with-zlib=/usr' '--enable-mbstring' '--enable-zip' '--enable-bcmath' '--enable-pcntl' '--enable-ftp' '--enable-exif' '--enable-calendar' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-wddx' '--with-tidy' '--with-curl' '--with-iconv' '--with-gmp' '--with-pspell' '--with-gd' '--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-jis-conv' '--with-webp-dir=/usr' '--with-zlib-dir=/usr' '--with-xpm-dir=/usr' '--with-openssl' '--with-pdo-mysql=mysqlnd' '--with-gettext=/usr' '--with-bz2=/usr' '--with-recode=/usr' '--with-mysqli' '--enable-soap' '--enable-phar' '--with-xsl' '--with-xmlrpc' '--with-kerberos' '--enable-posix' '--enable-sockets' '--with-pcre-regex' '--with-libdir=lib64' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--enable-intl' '--with-icu-dir=/usr'
==================================
gd

GD Support => enabled
GD Version => bundled (2.1.0 compatible)
FreeType Support => enabled
FreeType Linkage => with freetype
FreeType Version => 2.8.0
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
libJPEG Version => 6b
PNG Support => enabled
libPNG Version => 1.5.13
WBMP Support => enabled
XPM Support => enabled
libXpm Version => 30411
XBM Support => enabled
JIS-mapped Japanese Font Support => enabled
WebP Support => enabled
==================================

If you do no have the Webp enabled like above, will don't work.
Try to recompile your PHP version, with the option gd-webp enabled.