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 camera image previews look rotated 90 degrees #26292

Open
AlexKalopsia opened this issue Jul 18, 2022 · 4 comments
Open

Uploaded camera image previews look rotated 90 degrees #26292

AlexKalopsia opened this issue Jul 18, 2022 · 4 comments

Comments

@AlexKalopsia
Copy link

AlexKalopsia commented Jul 18, 2022

Running RocketChat on a Synology NAS, reverse-proxied.

Version: 4.8.1
Apps Engine Version: 1.32.0
Node Version: v14.18.3

Context

  • For what it's worth, this has not always been the case in the past (though I can't know for sure what introduced the issue)
  • I am testing everything both from desktop, as well as the mobile app (tested multiple phones and multiple phone cameras).
  • It seems like images not containing EXIF data (ie whatever images I take from the web) don't have an issue
  • NOT ALL images with EXIF data have this issue. If I upload images taken with my mirrorless camera, they don't present the issue.

The issue

It's been a few months that any camera photo we upload shows up as rotated 90 degrees in the thumbnail. Once clicked, the image looks correct.

image

Once I click on the thumbnail, the image looks rotated correctly both on mobile and on desktop. On desktop there is a tiny delay that might (or might not) perhaps help identify the issue.

rotate_issue

Below you can find a zip containing:

  1. Original photo
  2. Photo with No EXIF (stripped via Windows' Property panel)
  3. Photo with no EXIF (stripped via EXIF stripping tool)

Exif.zip

Note that, at least on Windows, the image that was stripped via the EXIF stripping tool actually shows a wrong thumbnail rotation on Windows, and maintains the wrong rotation when opened.

image

Tests done

  • Uploading these images via browser results in the wrong thumbnail rotation
  • Uploading these images via phone results in the wrong thumbnail direction
  • Uploading directly from the RocketChat camera results in the wrong thumbnail rotation
  • Upload an image taken with my mirrorless camera, containing EXIF data, results in the correct rotation
@ankar84
Copy link

ankar84 commented Jul 19, 2022

Try to disable rotate of photos here:
Admin UI - File Upload - Rotate images on upload
image

@AlexKalopsia
Copy link
Author

It's already disabled

@ankar84
Copy link

ankar84 commented Jul 19, 2022

Check this setting too:
Admin UI - Message - Message Attachments - Remove EXIF metadata from supported files
image

@AlexKalopsia
Copy link
Author

Tried that too now (both enabled and disabled) and, sadly, that doesn't seem to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants