moy2010 Posted September 7, 2016 Share Posted September 7, 2016 I was reading that PHP 5.5 already has a webp image generator, and the code to do it is as follows: $imgName = "codingslover.jpg";$webPName = "codingslover.webp";Syntax:cwebp [quality qualitypercentage] [source image] -o [destination]exec("cwebp -q 0 ".$imgName." -o ".$webPName." ");Anthor Method:exec("convert -colorspace RGB ".$imgName." ".$webPName . " "); Could this be used to auto generate webp thumbnails using the function protected function _regenerateNewImages from AdminImagesController.php aside from the .png or .jpg default ones? Unfortunately it seems that webp support in prestashop is stagnated :/ Link to comment Share on other sites More sharing options...
jmauclair Posted March 2, 2021 Share Posted March 2, 2021 Hi, I know it's a quiet old topic but it's really interesting, if you have find any ways to do it, I'd love to know, I'm going to try to implement that myself, let's see what is going on ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now