element-hq / element-hq/synapse
"Squashed" thumbnails with EXIF rotation metadata
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 600
- Avg merge
- 5d 22h
- Merged PRs (30d)
- 51
Description
This issue has been migrated from [#6046](https://github.com/matrix-org/synapse/issues/6046).
---
### Description
(I originally submitted a bug for riot-web here: https://github.com/vector-im/riot-web/issues/10903)
Consider a picture with EXIF rotation metadata (eg. a photo taken with a phone that was not turned 90° on the side), such as:

When opened in an application that takes into account EXIF rotation metadata, we see this:

**However** when we upload this picture in Riot, the thumbnail shows this:

### Steps to reproduce
- Take a picture with your phone and without rotating your phone on the side.
- Upload the picture in a matrix room using Riot-web : the thumbnail appears, and while the photo was rotated by taking into account the EXIF metadata, it appears "squashed".
### Version information
- **Homeserver**: my own private homeserver
- **Version**: 1.3.1
- **Install method**: official docker image
- **Platform**: Debian 9
Contributor guide
Assessment
This issue has not been assessed yet.