nextcloud / nextcloud/previewgenerator
Settings for preview sizes are ignored
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 520
- Forks
- 55
- PR merge metrics
- No merged PRs in 30d
Description
I used the commands from the documentation to generate previews just for some specific sizes:
./occ config:app:set --value="32 64 1024" previewgenerator squareSizes
./occ config:app:set --value="64 128 1024" previewgenerator widthSizes
./occ config:app:set --value="64 256 1024" previewgenerator heightSizes
Here is a screenshot from the database:

Then I followed the instructions to delete the existing previews and regenerate:
- Remove the
your-nextcloud-data-directory/appdata_*/previewdirectory - run
occ files:scan-app-data - Regenerate with
occ preview:generate-all
But these settings have no effect. I still get previews in many sizes up to 4096 after running the occ preview:generate-all.
Please let me know what I'm doing wrong, every help or hint is welcome :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the documented occ config:app:set commands, followed by removal of the appdata preview directory, files:scan-app-data, and preview:generate-all. Trace how the previewgenerator settings are read during generation and compare the configured sizes with the generated previews. Done means only the configured square, width, and height sizes are generated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100