element-hq / element-hq/element-web

Support HEIC images

Open
#19,531 34 comments 0 reactions 0 assignees View on GitHub
T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Send a HEIC image to a room. (Mimetype should be `"public.heic"`.)

Example event source (some parts redacted):

```
{
"room_id": "!redacted:beeper.com",
"type": "m.room.message",
"content": {
"body": "ima_355e641",
"info": {
"size": 1182567,
"mimetype": "public.heic",
"w": 3024,
"thumbnail_file": {
"iv": "REDACTED",
"hashes": {
"sha256": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"key": {
"k": "REDACTED",
"ext": true,
"key_ops": [
"encrypt",
"decrypt"
],
"alg": "A256CTR",
"kty": "oct"
},
"url": "mxc://beeper.com/0000000000000000000000000000000000000000",
"v": "v2"
},
"h": 4032
},
"file": {
"iv": "REDACTED",
"hashes": {
"sha256": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"key": {
"k": "REDACTED",
"ext": true,
"key_ops": [
"encrypt",
"decrypt"
],
"alg": "A256CTR",
"kty": "oct"
},
"url": "mxc://beeper.com/0000000000000000000000000000000000000000",
"v": "v2"
},
"msgtype": "m.image"
}
}
```

### Outcome

#### What did you expect?

I expect that when I click on the thumbnail, the full image is shown.

#### What happened instead?

When I click on the thumbnail, the full image is not shown (blank screen)

![image](https://user-images.githubusercontent.com/16734772/139166335-a3b32a26-615a-418c-85a6-49af18f87a35.png)

### Operating system

NixOS

### Application version

Element version: 1.9.2, Olm version: 3.2.3

### How did you install the app?

From Nixpkgs

### Homeserver

nevarro.space

### Will you send logs?

No

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.