RocketChat / RocketChat/Rocket.Chat
Rocket Chat Ignores EXIF Rotation Data, Displaying & Resizing Mobile Uploads in the Incorrect Orientation
@rodrigok is already working on this.
Since Jan 3, 2017.
- 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:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.