There was a problem loading the comments.

How do I set up the cron job for WebP conversion?

Support Portal  »  Knowledgebase (FAQ)  »  Viewing Article

  Print
Editions: all
Versions: 5.2.0+


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:

./symfony framework:generate-webp


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/symfony -- framework:generate-webp --overwrite > /dev/null 2>&1

Share via

Related Articles

© VIMP GmbH