nextcloud / nextcloud/previewgenerator

Settings for preview sizes are ignored

Open
#298 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug docs
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:
grafik

Then I followed the instructions to delete the existing previews and regenerate:

  1. Remove the your-nextcloud-data-directory/appdata_*/preview directory
  2. run occ files:scan-app-data
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.