element-hq / element-hq/element-android

Portrait video have swapped width and height

Open
#3,639 0 comments 1 reaction 0 assignees View on GitHub
A-File-Upload T-Defect
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

Upload a video created in portrait (compressed or not), i.e. with a width smaller than the height.
Observe the Event content, for instance:

```json
{
"content": {
"body": "20210706_131019.mp4",
"info": {
"duration": 1661,
"h": 1080,
"mimetype": "video/mp4",
"size": 2928347,
"thumbnail_info": {
"h": 1920,
"mimetype": "image/jpeg",
"size": 168918,
"w": 1080
},
"thumbnail_url": "mxc://matrix.org/REDACTED",
"w": 1920
},
"msgtype": "m.video",
"url": "mxc://matrix.org/REDACTED"
},
"origin_server_ts": 1625569907468,
"sender": "@REDACTED:matrix.org",
"type": "m.room.message",
"unsigned": {
"age": 96
},
"event_id": "$REDACTED",
"room_id": "!REDACTED:matrix.org"
}
```

Note that the thumbnail info is correct.

Reported in https://matrix.to/#/!AZozoWghOYSIAfaZjJ:matrix.org/$JNNQssHfLqk34tD8dLWzo1TQ1oZQvAUnKfW9QYCSyVU?via=matrix.org&via=privacytools.io&via=tchncs.de

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.