Opencart webp images

dcart

Free Member
Jan 21, 2019
28
3
London, Poznan
If you have used the new PageSpeed Insights tool from Google, you already know that websites get extra points for using new generation image formats such as webp. Opencart has a free modification that converts images to webp format.

Online shops with a large number of images can earn up to several dozen points for optimizing images and using new formats for photos.

Do You know any modyfication?
 
The problem is you should not just use webp because not all platforms and browsers support it.

Our OpenCart hosting uses the Google Mod_PageSpeed software (installed server level) which does a multitude of things such as compressing HTML, CSS, JS and compressing images, resizing them and finally changing them to other formats such as webp if the browser supports them.

https://developers.google.com/speed/pagespeed/module/
 
  • Like
Reactions: deepvyas
Upvote 0
Well, yes, but we can check if the platform supports webp or not. If it doesn't support it would be possible to create a jpg image. Technologically it is possible with php code, but is there such an extension?
 
Upvote 0
You can use cloudflare Pro which is about $20 a month and set image conversion to lossy or lossless webp without the need to install anything server side. You also get some other optimisation features as well as a pretty good web application firewall included.

There are plenty of 3rd party services that will optimise your images on the fly but I'm not sure how easy they'd be to integrate with your set-up?

I have installed modPagespeed on a server in the past and it did work quite well but was a bit of pig to optimise.
 
Upvote 0

Latest Articles