nextcloud / nextcloud/viewer

Add option to disable previews

Open
#3,014 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage enhancement
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

Is your feature request related to a problem? Please describe.
I have previews enabled in my nextcloud instance, but I don't want that the previews are shown in the viewer app. I need to have it enabled for other purposes (e.g. the memories app), so just disabling previews for the whole nextcloud instance isn't a solution for me. When I want to scroll through my photos and view some of them, I'm using the memories app (which first shows the preview and then loads the full size photo). However, when I open a photo through the files app (which opens it in this viewer app), I also want to be able to see the full size photo without having to download it.

Describe the solution you'd like
I would like to have a configuration option to ignore the previews. If that option is enabled, the viewer app should always load the full size photo like when previews are completely disabled for the whole nextcloud instance.

As an alternative, the viewer app could first load the preview and then load the full size image, similar to how it's done in the memories app.

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

Start in the viewer app's preview-loading path and trace how files opened from the files app select preview or full-size media. Compare the requested behavior with the Memories app's loading sequence. Done means a viewer configuration option can bypass previews and load the full-size photo, or consistently loads the preview before the full-size image.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.