nextcloud / nextcloud/viewer

Uploaded photos are not shown in full size

Open
#1,205 11 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2. developing bug
Dominant language
JavaScript
Stars
119
Forks
72
Avg merge
18h 42m
Merged PRs (30d)
24

Description

Describe the bug
Uploading an image file and viewing it in Photos does not fill all available space on screen. It's difficult to describe, screenshots are attached.
I downloaded the example Frog.jpg image, renamed it to test.jpg and uploaded it. Opening Frog.jpg shows it as expected, really big on the screen. Opening test.jpg shows it much smaller.

Original Frog.jpg:
Frog.jpg

Downloaded and uploaded as test.jpg:
test.jpg

To Reproduce
Steps to reproduce the behavior:

  1. Upload an image file
  2. Go to Photos
  3. Navigate to the image that was just uploaded
  4. Click on it to view

Expected behavior
Image is as big as possible on the page, leaving not much space around it.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Fedora 35, kernel 5.16.18-200
  • Google Chrome 100.0.4896.75
  • Nextcloud 23 running in Docker, image nextcloud:23, updated to 23.0.3

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 by reproducing the issue in Photos using the attached Frog.jpg example and its uploaded test.jpg copy, then trace the viewer's image sizing and layout behavior. Done means an uploaded image and the original image both use as much available page space as possible while preserving the expected viewing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
66/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.