nextcloud / viewer

🖼 Simple file viewer with slideshow for media
GNU Affero General Public License v3.0
97 stars 55 forks source link

Images on single-file public shares are distorted #2534

Open bueroblanko opened 1 year ago

bueroblanko commented 1 year ago

Describe the bug When i share an image from my nextcloud via a public link and visit this link on my smartphone, the image is displayed disproportionately compressed.

To Reproduce Steps to reproduce the behavior:

  1. Go to your nextcloud
  2. Click on a random landscape image
  3. create a public link
  4. copy link to smartphone and open it there

Expected behavior the image should have fullwidth while the height depends on the image format

Screenshots original image in correct proportions: https://cloud.bueroblanko.de/s/EXadK7DqjgCadgy expected view on mobile: https://cloud.bueroblanko.de/s/xx3Fi5EnBib3C9F actual incorrect view on mobile: https://cloud.bueroblanko.de/s/StmEm7W77MNDyyF

Desktop (please complete the following information): on desktop the image is displayed for all browsers correctly

Smartphone (please complete the following information): on smartphone the issue exists on

I hope this information helps to understand my issue and anyone can help with this

skjnldsv commented 1 year ago

Which nc version please?

bueroblanko commented 1 year ago

I'm using 25.0.2

skjnldsv commented 1 year ago

Works fine for me on 26 and latest 25. Please upgrade to latest 25

bueroblanko commented 1 year ago

I upgraded, but the issue still exists. Is there anything else I can do?

skjnldsv commented 1 year ago

Can you publicly share a folder containing the file, and post the link here? So I can try reproducing the issue myself on your server?

bueroblanko commented 1 year ago

sure. i created a testfolder with a testfile in it:

folder: https://cloud.bueroblanko.de/s/a7JRY6JCKe6StB7 file: https://cloud.bueroblanko.de/s/a7JRY6JCKe6StB7

thanks in advance

skjnldsv commented 1 year ago

Looks good for me :shrug: image