diff --git a/nextcloud/README.md b/nextcloud/README.md index af32259..63f7a17 100644 --- a/nextcloud/README.md +++ b/nextcloud/README.md @@ -21,5 +21,14 @@ Do as much as is possible with the docker setup. The PHP stuff for example is no # Photo Preview Generation: - Photo viewer tweaks: https://rayagainstthemachine.net/linux%20administration/nextcloud-photos/ - Use these values to svae space on prieview files and speed nextcloud up. https://ownyourbits.com/2019/06/29/understanding-and-improving-nextcloud-previews/ +```sh +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 +oc config:app:set preview jpeg_quality --value="60" +``` - I created a cron Job outside the container using the `occ` client command to trigger photo pre generation every day. - Maybe this can be added to the cron nextcloud container? \ No newline at end of file