RocketChat / RocketChat/Rocket.Chat

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

Open
#5,404 1 comment 2 reactions 1 assignee View on GitHub

@rodrigok is already working on this.

Since Jan 3, 2017.

subj: mobile type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.