As I linked above you can adjust config, my current config is:
Read more about:
https://ownyourbits.com/2019/06/29/understanding-and-improving-nextcloud-previews/
And than you need to regenerate previews again:
Short summery from the Github:
To “reset” the preview cache
- Stop Webserver (apache / nginx)
- Moved the appdata_instaceName/preview folder outside the appdata folder. You can just remove it if you are confident.
- Run
sudo -u www-data /usr/bin/php /var/www/nextcloud/occ files:scan-app-data
to fix database - Start Webserver and Test everything works
- Finish up (delete moved folder, etc).
- Run pregenerate command afterwards.