Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploaded photos are not shown in full size #1205

Open
Sverik opened this issue Apr 11, 2022 · 10 comments
Open

Uploaded photos are not shown in full size #1205

Sverik opened this issue Apr 11, 2022 · 10 comments
Labels
2. developing Work in progress bug Something isn't working

Comments

@Sverik
Copy link

Sverik commented Apr 11, 2022

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
@Sverik Sverik added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working labels Apr 11, 2022
@skjnldsv
Copy link
Member

What is you max preview generation config as well as your screen resolution please?

@skjnldsv skjnldsv transferred this issue from nextcloud/photos Apr 11, 2022
@Sverik
Copy link
Author

Sverik commented Apr 11, 2022

Screen is 4k. And indeed, it was all about preview_max_x and preview_max_y, these were set to 1000. Thanks for pointing me to the correct configuration parameter!

@Sverik Sverik closed this as completed Apr 11, 2022
@skjnldsv
Copy link
Member

We should improve and show a warning or something tbh 🤔
Thoughts @nextcloud/server ?

If it's under 4k, let's show a warning/info in the instance setup checks?

@skjnldsv skjnldsv reopened this Apr 12, 2022
@szaimen
Copy link
Contributor

szaimen commented Apr 12, 2022

PR here: nextcloud/server#31938

@szaimen szaimen added 2. developing Work in progress and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Apr 12, 2022
@skjnldsv skjnldsv added this to the Nextcloud 25 milestone Aug 17, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Oct 19, 2022
@blizzz blizzz modified the milestones: Nextcloud 26, Nextcloud 26.0.1 Mar 21, 2023
@derMart

This comment was marked as off-topic.

@skjnldsv

This comment was marked as resolved.

@derMart
Copy link

derMart commented Jul 10, 2023

@skjnldsv Sure, for images which are not browser compatible a preview can be shown. But well, the 150mb raw jpeg (jpegs are not raw btw., they are always compressed lossy and are always demosaiced) is most probably an edge case. Even large RAW files are usually only around 30mb, very big jpegs hardly ever exceed 10mb. That is not a problem at all for todays inet bandwidth.

Would you mind guiding me to the discussion you refer to? I am not sure where to find it, or which you refer to. There is this issue: #578 but the majority of participants there is for an easy possibility to see the actual images.

@skjnldsv
Copy link
Member

That is not a problem at all for todays inet bandwidth.

that's not true. Lots of people don't have high performance bandwiths nowadays. Nextcloud is heavy enough already and is being used in a lot of area of the world :)

Would you mind guiding me to the discussion you refer to? I am not sure where to find it

#578 seems like a good start. I remember online chats and calls about this too

@skjnldsv skjnldsv removed this from the Nextcloud 26.0.5 milestone Aug 8, 2023
@jospoortvliet
Copy link
Member

That is not a problem at all for todays inet bandwidth.

that's not true. Lots of people don't have high performance bandwiths nowadays. Nextcloud is heavy enough already and is being used in a lot of area of the world :)

Would you mind guiding me to the discussion you refer to? I am not sure where to find it

#578 seems like a good start. I remember online chats and calls about this too

Perhaps (as said in nextcloud/server#31938 (comment) ) and suggested by others before, an ideal approach would be what the mobile apps do, afaik - load the preview first, then start loading the full image. Then we set the preview size to 1080P by default. As some original formats are already smaller (HEIC is more efficient), 4K previews really make no sense anymore for photos. Loading a 1080P preview and then the full image would lower bandwidth usage with the new file formats. It would show the image soonest AND at max quality after a second or 3 longer...

@regs01
Copy link

regs01 commented Oct 2, 2024

Even mobile apps do not need previews. Just thumbnails. Those are not huge video files. Even them are being fed to client in gigabytes of original files directly without transcoding, while little photos are being transcoded. This is just makes no sense.

Or just make an option. So those who don't need previews wouldn't have them eating up the space.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants