We recommend setting up a cron job 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:
./vimp framework:generate-webp
Important note:
In VIMP versions lower than 6.x, please use the command ./symfony instead of ./vimp in the code above.
It supports the following parameters:
--overwrite
...generates new WebP images and overwrites the existing ones.
--force
...forces the execution of the task, even if it is already running.
The task can be called via a daily cron job like this:
0 3 * * * php -f /pfath/to/vimp/vimp -- framework:generate-webp --overwrite > /dev/null 2>&1
Important note:
In VIMP versions lower than 6.x, please use the command /symfony instead of /vimp in the code above.