I have a Nextcloud 16.0.4 running on a VM that uses dietpi as OS.
The System has 12GB RAM and a i5 3570S - so its not really on the low side (like a Raspberry or similar).
PHP is on version 7.3.7
and Apache2 is on Server version: Apache/2.4.25 (Debian) and Server built: 2019-04-02T19:05:13
The server is running locally on gigabit ethernet - so that isnt a bottleneck here.
So everything is up to date.
I am really happy with Nextcloud but the only thing that was always lacking was the slow speed on showing images.
I already did this changes to speed things up:
occ config:app:set previewgenerator squareSizes --value=“32 256”
occ config:app:set previewgenerator widthSizes --value=“256 384”
occ config:app:set previewgenerator heightSizes --value=“256”
occ config:system:set preview_max_x --value 2048
occ config:system:set preview_max_y --value 2048
occ config:system:set jpeg_quality --value 60
occ config:app:set preview jpeg_quality --value=“60”
I installed previewgenerator and it created all the preview images (took ~4 hours for 14GB of previews cron is working and the app does it job as far as I can tell).
When I now open Nextcloud in a browser and go into a folder with pictures (jpeg) for the first time, then the thumbnails of the images show up too slow to be already generated.
So they might not be correcty generated or not used (they are located at nextcloud_data/appdata_***/preview).
Its the same for the “gallery” app.
On the first time I open a folder, the previews/thumbnails are generated - that can take several minutes for large folders.
After that is finished, the loading time is much faster, but I think the previewgenerator-app is made to overcome this problem.
I read something about imagick, previewgenerator and other tweaks, but before I try more that wont work, I think its the best to ask you guys for help and your thoughs on this.
If you need more (information, video that shows the problem as reference etc.), please let me know.
Thanks a lot!