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

Image viewer doesn't respect aspect ratio #10511

Closed
prohtex opened this issue Feb 25, 2024 · 5 comments · Fixed by #11186
Closed

Image viewer doesn't respect aspect ratio #10511

prohtex opened this issue Feb 25, 2024 · 5 comments · Fixed by #11186
Assignees
Labels
Priority:p3-medium Normal priority Type:Bug Something isn't working

Comments

@prohtex
Copy link

prohtex commented Feb 25, 2024

Describe the bug

The oCIS image viewer allows you to preview supported image files, but when the images are opened in the web, the aspect ratio is not maintained.

Steps to reproduce

  1. Upload an image
  2. Open in oCIS web
  3. Observe aspect ratio

Expected behavior

Image displayed properly

Actual behavior

Image displayed with incorrect aspect

Additional context

Probably a simple CSS fix.

Screenshot 2024-02-24 at 10 34 45 PM
@prohtex prohtex added the Type:Bug Something isn't working label Feb 25, 2024
@AlexAndBear
Copy link
Contributor

Might be fixed on master already, need to check

@kulmann
Copy link
Member

kulmann commented Feb 26, 2024

Has been fixed for ocis v5.0.0. The thumbnail service now has a new nocrop option, which the preview app is utilizing. See owncloud/ocis#5179 for details.
Since this required an enhancement for the thumbnail service we can't bring it in ocis v4.0.x, i.e. won't fix for ocis v4.0.x, sorry.

@kulmann kulmann closed this as completed Feb 26, 2024
@prohtex
Copy link
Author

prohtex commented Jun 18, 2024

@kulmann can we re-open this? I think there was some confusion about the issue in question, which is still present in 9.0.0. The behavior can be observed here. It might be limited to webkit/safari (and indeed is probably related to how Safari handles the transform) as I cannot reproduce in Firefox:
https://ocis.ocis-wopi.latest.owncloud.works/preview/personal/admin/cover.jpg?fileId=f6d67da8-f09d-4c36-ae78-ec1bcc07dd77%243fa1879e-fbd7-4d60-a78c-5867602b2562%21c5a07b6e-b41b-4ba5-b401-546a4f49c5d8&contextRouteName=files-spaces-generic&contextRouteParams.driveAliasAndItem=personal%2Fadmin&contextRouteQuery.fileId=f6d67da8-f09d-4c36-ae78-ec1bcc07dd77%243fa1879e-fbd7-4d60-a78c-5867602b2562%213fa1879e-fbd7-4d60-a78c-5867602b2562
Screenshot 2024-06-18 at 3 24 39 AM

Screenshot 2024-06-18 at 3 24 49 AM
Screenshot 2024-06-18 at 3 25 09 AM

@kulmann kulmann reopened this Jun 18, 2024
@kulmann kulmann added the Priority:p3-medium Normal priority label Jun 18, 2024
@kulmann kulmann moved this from Qualification to Prio 3 or less in Infinite Scale Team Board Jun 18, 2024
@AlexAndBear AlexAndBear self-assigned this Jul 14, 2024
@AlexAndBear
Copy link
Contributor

Probably a simple CSS fix.

It was indeed, but trial and error was a nightmare 😸

Thanks for the detailed error description

@kulmann
Copy link
Member

kulmann commented Jul 15, 2024

thank you for digging into it @AlexAndBear :-)

@prohtex don't know if you heard about the rolling releases. If not, see https://owncloud.dev/ocis/release_roadmap/#release-types - gist is, that we now release an ocis-rolling artifact after each sprint (= every 3 weeks on Monday or Tuesday). This fix will be part of the next rolling release (ocis 6.2.0). Don't know about your production environment, if it allows for rolling then you'll have the fix in about 2 weeks. If not, you'll need to wait for November 🙈

@github-project-automation github-project-automation bot moved this from Prio 3 or less to Done in Infinite Scale Team Board Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p3-medium Normal priority Type:Bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants