element-web: photo with exif orientation is not rotated

I just uploaded a portrait photo taken by my camera via file upload of vector-web. In the chat view as well as when I click on the thumbnail to display the photo as full screen, it is displayed in landscape mode.

I checked that the exif orientation is correct with:

> identify -verbose <photo.jpg> | grep exif:Orientation
exif:Orientation: 8

which is the right setting according to the diagrams at http://sylvana.net/jpegcrop/exif_orientation.html.

According to this stackoverflow answer, at least firefox supports a css property to rotate the image according to the exif orientation.

Similar issue for vector-android: https://github.com/vector-im/vector-android/issues/409

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 19 (7 by maintainers)

Most upvoted comments

lizard

@bwindels I can definitively reproduce it. I just took a selfie (it’s not me, obviously, LOL) with my phone’s camera and shared it via RiotX on Android. It looked normal even after posting in the message pane. Then I went to my desktop PC, opened Riot, and the photo appears 90° degrees rotated CW. I’ve downloaded the file on the desktop PC via Riot (hope Riot doesn’t change anything already during upload so it should be the original) and attached it for reference.

According to CanIUse this is supported in Chrome since v81. Electron 8.0 is based on Chromium v80 according to the ElectronBlog. On that same page, you can find that Electron 9.0 is based on v83. Consequently, if Riot Desktop would be upgraded to Electron 9.0, this bug would be fixed.