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

Rocket Chat Ignores EXIF Rotation Data, Displaying & Resizing Mobile Uploads in the Incorrect Orientation #5404

Open
alexmarkley opened this issue Jan 3, 2017 · 1 comment

Comments

@alexmarkley
Copy link

Your Rocket.Chat version: 0.48.2 (hosted rocket.chat)

When taking snapshots, many (mobile) cameras save these images in the native orientation of the camera sensor, and only record the original orientation of the camera in EXIF data as a presentation hint.

Here is a screenshot of the mobile upload dialog with the incorrectly-presented image:

iOS Client Screenshot

For reference, here is the original image with the EXIF data intact: IMG_9444.JPG

Note that this issue affects:

  • All clients, including Android and Web
  • Images even after they have been posted, so thumbnail presentations and gallery presentations, not just upload previews.
  • Avatars also, not just room uploads.

Semi-effective workaround:

Identify the native orientation of your camera's sensor and only upload images which have been taken in the "correct" orientation.

@moisespr123
Copy link

moisespr123 commented Jun 26, 2017

Hi. This issue still persists with 0.56. A user in my chat uploaded a picture as avatar and the rotation is wrong. The user says in the PC the avatar image used is shown with the correct orientation.

I have Avatar Resizing turned off as it seems to cause crashing issues.

Update: In the 5th or 6th attempt, the image was shown correctly, but I told the user to manually rotate the image in the PC as sometimes this overrides the EXIF information and actually saves the image with the correct orientation without touching EXIF data.

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

No branches or pull requests

5 participants