How do I set up the cronjob for WebP conversion?

Editions: all
Versions: 5.2.0+

We recommend setting up a cronjob for the WebP conversion task that regularly checks whether all image files have been converted to WebP.

Before doing so, please make sure that WebP support is enabled in the configuration under Basic -> Basic Settings.

The task responsible for this can be called as follows:

./symfony framework:generate-webp

It supports the following parameters:


Generates new WebP images and overwrites the existing ones.


Forces the execution of the task, even if it is already running.

The task can be called via a daily cronjob like this:

0 3 * * * php -f /pfath/to/vimp/symfony -- framework:generate-webp --overwrite > /dev/null 2>&1


Last update on 2022/09/13 by Admin.

Go back