nextcloud / nextcloud/previewgenerator

Updating preview database

Open
#134 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
520
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Question

Is there a way to update preview database to old files or new settings? What is the best method for this task?

One example
  1. Previews are generated for widthSizes "128".
  2. widthSizes is changed to "128 256".
  3. Missing preview files should be generated.
Another example
  1. previewgenerator is missing in the installation.
  2. A few images are uploaded.
  3. previewgenerator is installed and enabled.
  4. Missing preview files should be generated.
Background

The momentary application is the inclusion of the previewgenerator for NextCloudPi, cf. nextcloud/NextCloudPi#662.

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

No files, tests, or entry points are named in the issue. Start by tracing how previewgenerator handles changed widthSizes and newly installed generators, then determine the intended way to generate missing preview files for both examples; done requires an agreed implementation and documented behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.