Control Web Panel
WebPanel => PHP => Topic started by: ring_c on June 03, 2019, 08:18:26 PM
-
I'v already installed it using:
yum install libwebp-devel
But how can I compile php-fpm with it?
-
I really need to know how to have webp support with gd extension. please!
-
What do you mean support it? Do you mean to convert images or support displaying them on a website?
-
What is the particular extension you want to enable in php?
-
Guys,
I'm hosting Wordpress sites, and recently there are plugins like "Webp express" that can convert standard images (like jpg, png) to webp format for better loading times.
When installing webp express plugin, I'm shown none of the possibilites to convert the images are available, as can be seen here:
https://pasteboard.co/Ii5Nbkt.jpg (https://pasteboard.co/Ii5Nbkt.jpg)
I've tried the same plugin on another server I have, running on ispconfig (which I consider as much more primitive comparing to CWP), and there it supports gd out of the box.
So yeah... I'm looking for a way to add --with-webp to the php compiler (it's possible to add such options in php selector, but I don't think it influences php-fpm which I'm using).
Here's a reference to PHP's manual:
https://www.php.net/manual/en/function.imagewebp.php (https://www.php.net/manual/en/function.imagewebp.php)
-
hi
how enable wepb support in php?
gd -> WebP Support -> enabled
-
it looks php-fpm not have webp
how enable it?
-
here is solution
1 install libwebp
2 edit php config build file /usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/7.1.ini or use any php version
3 add in bottom
[webp]
default=1
option="--with-webp-dir=/usr/lib64/"
4 rebuild php
-
here is solution
1 install libwebp
2 edit php config build file /usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/7.1.ini or use any php version
3 add in bottom
[webp]
default=1
option="--with-webp-dir=/usr/lib64/"
4 rebuild php
Thank you, but unfortunately, it's not working (already compiled twice).
-
So? Can't anyone figure this out? Please?!
-
This one kills me... Why can't we get instructions on how to compile PHP with WEBP support?!
-
Hey ring,
I know this isnt the answer but I am using the ShortPixel Adaptive Image plugin on all my wordpress sites and they are being served as webp. AppSumo had a great deal for them recently and I purchased a couple of codes for it but when I checked today, the deal had expired. I believe they have a free version but not sure if you would be able to auto use their CDN.
-
Hey ring,
I know this isnt the answer but I am using the ShortPixel Adaptive Image plugin on all my wordpress sites and they are being served as webp. AppSumo had a great deal for them recently and I purchased a couple of codes for it but when I checked today, the deal had expired. I believe they have a free version but not sure if you would be able to auto use their CDN.
Funny, that's exactly why I'm asking for webp support. I bought this great deal from AppSumo as well, and although I've marked in its settings to use webp, I'm still getting JPGs. I thought it had to do with my setup.
But coming to think about it, as they're being served from their CDN, why would I still get JPGs? Weird...
But anyway, I host other sites for my clients, and I would like to support WebP for them.
-
This works for me.
As ed44rf write above,
1. install libwebp
2. edit PHP config build file /usr/local/cwpsrv/htdocs/resources/conf/php-fpm_selector/7.1.ini or use any PHP version
3. Add this somewhere after [gd-...]
[gd-webp]
default="1"
option="--with-webp-dir=/usr --enable-gd-webp"
info-file="gd.txt"
4 rebuild php
-
Hey ring,
I know this isnt the answer but I am using the ShortPixel Adaptive Image plugin on all my wordpress sites and they are being served as webp. AppSumo had a great deal for them recently and I purchased a couple of codes for it but when I checked today, the deal had expired. I believe they have a free version but not sure if you would be able to auto use their CDN.
Funny, that's exactly why I'm asking for webp support. I bought this great deal from AppSumo as well, and although I've marked in its settings to use webp, I'm still getting JPGs. I thought it had to do with my setup.
But coming to think about it, as they're being served from their CDN, why would I still get JPGs? Weird...
But anyway, I host other sites for my clients, and I would like to support WebP for them.
Sorry for getting back to you so late. When I right click one of the images and open in a new tab it will look something like this:
https://cdn.shortpixel.ai/spai/w_535+q_lossy+ret_img+to_webp/https://3rdcoastdomains.net/wp-content/uploads/1X_Hosting_Illustration_01.png
At first I was thinking it was still in .png format but when you right click the image and save image as it will show as:
1X_Hosting_Illustration_01.webp
Is that what you were seeing?
-
webp support added to cwp php versions.
-
webp support added to cwp php versions.
Thank you! This is great!
-
webp support added to cwp php versions.
Yes WebP is supported but not listed in php fpm 7.3
-
Yes WebP is supported but not listed in php fpm 7.3
I do have it in PHP-FPM and PHP selector 2 for v7.3.6. Try "reset options".
-
on php5.6.40 no working!!!!!!
-
Package libwebp-devel-0.3.0-7.el7.x86_64 already installed and latest version
Nothing to do
i use php 5.6.40 gd webp are selected, but in phpinfo https://adultwork.ro/x.php is not here!! fix the bug please!!!
-
did you rebuilded after resetting the option?
-
yes ofcourse!