Optimising images on WordPress with LWS Optimize

Procédure

Image optimisation is a key element in improving website performance. Good management of image formats can reduce page load times, improve the user experience and optimise search engine optimisation (SEO). WebP is certainly one of the best-known optimised image formats, and although new alternatives, such as AVIF, are available on the market, it continues to grow in popularity and to be used everywhere, enjoying great compatibility with all browsers on the market.

However, it is quite rare to have images and photos natively in WebP: PNG or JPEG types are generally the default format, so it is necessary to convert them to WebP format beforehand.

The WordPress extension LWS Optimize lets you convert all your images directly from your site. Each image will be losslessly optimised to reduce their size as much as possible without reducing their quality.
In this documentation, we'll guide you through the different stages of configuring and using image conversion with LWS Optimize. You'll find out how to activate this feature and optimise your site for greater speed and efficiency.

Immediately optimise the speed and user experience of your site by automatically converting your JPEG and PNG images to WebP or AVIF format, directly from LWS Optimize. This best-of-breed WordPress caching plugin combines lossless compression, conversion on download and easy restoration of the original files, for an effortless performance boost. And for easy installation via the official directory, find this free, high-performance solution on WordPress as the best free WordPress cache plugin.

Configuring image conversion to WebP with LWS Optimize

1. Activating image conversion

To activate automatic conversion of images to WebP via the LWS Optimize plugin, access your WordPress dashboard and then click on LWS Optimize in the left-hand menu.

Optimising images on WordPress with LWS Optimize

Once on the plugin page, you'll find the image conversion block at the bottom of the page. Click on "Convert images" to open the configuration panel.

Optimising images on WordPress with LWS Optimize

In this mode, you can choose whether or not to use our API to convert your images. By using the API you can convert 2000 images (a credit recovery method will be made available in the future) to WebP/AVIF; otherwise, it will use your site's resources to convert your images without limit to WebP, with a lower conversion rate.

You can also choose the maximum quality and size of images once converted, to save extra space. This choice is only available for standard conversion, with the API automatically returning the best possible image.

Optimising images on WordPress with LWS Optimize

Once you have configured the parameters, click on "Convert" to launch the conversion cron. The images on the site will be scanned and those matching the criteria will be converted to WebP or AVIF.

Depending on the number of images, this may take some time, but you can track the progress of the conversion by looking at the statistics. As conversions are carried out in the background using cron, you can leave the page during the process.

Optimising images on WordPress with LWS Optimize

If you are using the default WordPress WP-Cron, there must be activity on your site for the cron, and by extension the conversion, to take place.

2. Image conversion on upload

The automatic conversion option allows you to convert any image uploaded to your site directly into WebP, instead of having to convert it afterwards. To activate this option, go to the plugin's advanced mode, the "Images" tab and then tick the "Automatic conversion on upload" box, which will open the same dialog box as above.

Optimising images on WordPress with LWS Optimize

Configure the parameters for the conversion and confirm to activate the action. No copy of the original image will be made; the image will be converted before it is saved on the site.

3. Using WebP images on the site

Once the images have been converted, they will be automatically served on your site without any intervention on your part. If the converted image no longer exists, then the original image will be served in its place, if available, ensuring that your site will always be functional even if there are problems with the conversion.

To check that your site is using these optimised images:

  1. Open your site in a browser.

  2. Right-click on an image and select Inspect.

  3. Check that the image displayed is in WebP/AVIF format and that it ends with _lwsoptimized.

Optimising images on WordPress with LWS Optimize

4. Restoring original images

If you encounter a problem with the converted images or wish to restore your images to their original state, click on the "Restore images" button in the "Restore images" line.

Optimising images on WordPress with LWS Optimize

Make sure you read the information displayed before clicking on the "Restore images" button, which will start the restoration process. Like conversion, restoration may take a little time depending on the number of images to be processed.

Optimising images on WordPress with LWS Optimize

Conclusion

You now know how to :

  • Enable automatic conversion of images to WebP with LWS Optimize to improve the performance of your WordPress site.
  • Configure the necessary parameters for image conversion, taking into account image quality and size.
  • Use the automatic conversion function when uploading to save time and improve efficiency.
  • Ensure that WebP images are correctly served on your site for a better user experience.
  • Restore the original images if necessary, taking care not to overwrite the source files.

With these steps, your site should load faster, providing a better experience for your visitors and a competitive edge in the world of SEO. 🚀🌐

Thank you for reading this article! If you have any questions or would like to share your experience with LWS Optimize, please feel free to leave a comment below. Your feedback is valuable and helps us improve our services. 💬👍

Rate this article :

This article was useful to you ?

Article utileYes

Article non utileNo

MerciMerci ! N'hésitez pas à poser des questions sur nos documentations si vous souhaitez plus d'informations et nous aider à les améliorer.


Vous avez noté 0 étoile(s)

Similar articles

2mn reading

How do I install the LWS affiliate plugin on WordPress?

22mn reading

How do I clean my WordPress site with LWS Cleaner?


Questions sur cet article

Ask the LWS team and its community a question

RGPD : Responsable LWS-Ligne Web Services. Finalité : modération et publication publique de votre question, notification éventuelle d'une réponse. Base légale : consentement (art. 6.1.a RGPD). Conservation des emails : 90 jours après notification, 12 mois maximum sans réponse. Vous pouvez exercer vos droits via notre nos CGV - section RGPD.