Add missing thumbnails
This entire feature is automatically enabled within the docker image.
In order to add missing thumbnails you need to have a chromium browser installed. Newer docker images include all of this by default without any intervention.
- install chromium or chrome (e.g.
sudo apt install chromium-browser) or use google-chrome (e.g.
sudo apt install ./google-chrome-stable_current_amd64.deb)
- change in your
GENERATE_MISSING_THUMBNAILS = true
Thumbnails can be manually created by executing the following command:
php artisan thumbnail:generate
Schedule them by adding this line to your servers cron entries if you have not already done this for the backups:
0 * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
This will check every hour if there is any task to run.
By default missing thumbnails are generated every 2 hours. If you wish to change that add the following to your
THUMBNAIL_FILLER_INTERVAL = "0 0 */7 * *"
This would translate to a weekly missing thumbnail creation.