From c2c08401cc9f27ab696d5cd2c2b9bcad3576ac2a Mon Sep 17 00:00:00 2001 From: sporada Date: Thu, 29 Apr 2021 09:52:39 +0200 Subject: [PATCH] Update 'nextcloud/README.md' --- nextcloud/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) 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