Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/previewgenerator.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Steinmetz <richard@steinmetz.cloud>2022-01-14 17:06:49 +0300
committerGitHub <noreply@github.com>2022-01-14 17:06:49 +0300
commit53710babf9de76555822f5f3176af122d002a975 (patch)
treef7b4f236a3a96e853b151ac1410ce36166ca147b
parent37a5feecc0435b48d108996014f9e3cfb8e97ebf (diff)
parent41e12650339188962fd675d68c8ecc6460a167b8 (diff)
Merge pull request #281 from nextcloud/enh/268/add-preview-reset-to-faq
Add FAQ section for regenerating all previews
-rw-r--r--README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/README.md b/README.md
index 661a80b..57be130 100644
--- a/README.md
+++ b/README.md
@@ -98,3 +98,12 @@ Note:
### I want to skip a folder and everything in/under it
Add an empty file with the name `.nomedia` in the folder you wish to skip. All files and subfolders of the folder containing `.nomedia` will also be skipped.
+
+### I want to reset/regenerate all previews
+
+**WARNING:** This is not supported but it has been confirmed to work by multiple users. Proceed at your own risk. Always keep backups around.
+
+1. Remove the folder `your-nextcloud-data-directory/appdata_*/preview`
+2. *Optional:* change parameters `preview_max_x` and `preview_max_y` in `config.php` (e.g., to `512`), and change the `previewgenerator` app parameters `heightSizes`, `squareSizes` and `widthSizes` as per the README (or better yet, to a low value each, e.g. `512`, `256` and `512` respectively)
+3. Run `occ files:scan-app-data` (this will reset generated previews in the database)
+4. Run `occ preview:generate-all [user-id]` (this will run very fast if you did step 2)