Convert images to WebP in Prestashop and optimize the performance

Description

WebP image support for your store based on Prestashop. Optimize the images of your store and accelerate the load. Improve the PageSpeed of your Prestashop store with this simple-to-use plugin.

With this module you can upload images of your products in WebP format and you can also convert all the images in your store using the options offered by this plugin. With this you can: Accelerate the loading of images making your store faster, increase the speed and performance of your PageSpeed statistics, optimize the general performance of your Prestashop.

You can also divide the task of converting images into subprocess (Threads), speeding up the conversion process the first time since it takes advantage of the multiple cores of your server, this applies only the first time and is useful when you have many images in your store as you can speed up the conversion process by up to 8X.

It does not require complicated configurations, just install it and as the last step, you must generate the WEBP images in the module configuration . You do this only once, then the module will automatically convert all the images that are uploaded to your store while using Prestashop’s native method for that.

NOTE: For custom directories added to the module, it may be necessary to manually generate the webp images in the configuration of this module each time changes are made to them.

Support and module updates free for 90 days. Lifetime license valid for ONE store only.


For demonstration purposes, the video was accelerated to 10X in the image conversion

Minimum Requirements

  • Prestashop 1.5.0.15 or higher, 1.6.x or 1.7.x MANDATORY
  • PHP 5.6 or higher MANDATORY
  • PHP Library GD compiled for WebP image support MANDATORY
  • PHP Library FileInfo MANDATORY
  • Server Apache (Not supported for litespeed or Nginx, unless you work dual with Apache, you should ask for technical support before buying the plugin for these cases) MANDATORY
  • Having the Friendly URL option enabled in Prestashop MANDATORY
  • Optionally supports: EWWW
  • Optionally supports: cwebp (executing cwebp binary using an exec call), vips (using Vips PHP extension), imagick (using Imagick PHP extension), gmagick (using Gmagick PHP extension), imagemagick (executing imagemagick binary using an exec call ), graphicsmagick (executing graphicsmagick binary using an exec call), ffmpeg (executing ffmpeg binary using an exec call)

About WebP

WebP is an image format employing both lossy and lossless compression, along with animation and alpha transparency. Developed by Google, it is designed to create smaller or better-looking images compared to the JPEG, PNG, or GIF image formats.

Tecnology

WebP is based on block prediction. Each block is predicted on the values from the three blocks above it and from one block to the left of it (block decoding is done in raster-scan order: left to right and top to bottom). There are four basic modes of block prediction: horizontal, vertical, DC (one color), and TrueMotion. Mispredicted data and non-predicted blocks are compressed in a 4×4 pixel sub-block with a discrete cosine transform or a Walsh–Hadamard transform. Both transforms are done with fixed-point arithmetic to avoid rounding errors. The output is compressed with entropy encoding. WebP also has explicit support for parallel decoding.

The reference implementation consists of converter software in the form of a command-line program for Linux (cwebp) and a programming library for the decoding, the same as for WebM. The open source community quickly managed to port the converter to other platforms, such as Windows.

WebP’s lossless compression, a newer format unrelated to VP8, was designed by Google software engineer Jyrki Alakuijala. It uses advanced techniques such as dedicated entropy codes for different color channels, exploiting 2D locality of backward reference distances and a color cache of recently used colors. This complements basic techniques such as dictionary codingHuffman coding and color indexing transform. This format uses recursive definition: all of the control images, such as the local entropy code selection, are encoded the same way as the whole image itself.

The WebP container (i.e., RIFF container for WebP) allows feature support over and above the basic use case of WebP (i.e., a file containing a single image encoded as a VP8 key frame). The WebP container provides additional support for:

  • Lossless compression – An image can be losslessly compressed, using the WebP Lossless Format.
  • Metadata – An image may have metadata stored in Exif or XMP formats.
  • Transparency – An image may have transparency, i.e., an alpha channel.
  • Color Profile – An image may have an embedded ICC profile as described by the International Color Consortium.

1 review for Convert images to WebP in Prestashop and optimize the performance

5.0
Based on 1 review
5 star
100%
4 star
0%
3 star
0%
2 star
0%
1 star
0%

    Jakub P. (verified owner)

    Jakub P.
    Jakub P.
    13 de June de 2021

    one of best

    0 out of 1 people found this helpful. Was this review helpful to you?
    Yes
    No
Add a review

Cancel