element-meta icon indicating copy to clipboard operation
element-meta copied to clipboard

Add support to HEIC/HEIF image format

Open Linuxine opened this issue 3 months ago • 2 comments

Steps to reproduce

Not that I am happy about this state of fact, but it seems that modern Samsung phones do not save pictures taken with the camera as classical JPEG file, but as (Apple I guess?) HEIF image files, with the mime-type "image/heic". When a contact send one of these pictures, I can see it on my (non Samsung) phone with Element, but not with Element X

Outcome

As it seems Element X will be the future official Android client, I guess this is a missing feature ?

Regards,

Your phone model

Asus

Operating system version

Android 12

Application version and app store

Version 25.09.0 (202509000)

Homeserver

No response

Will you send logs?

Yes

Are you willing to provide a PR?

No

Linuxine avatar Sep 04 '25 06:09 Linuxine

@Linuxine Issue reproducible on my side with this image: https://www.filesampleshub.com/download/image/heif/sample1.heif

In my case, I sent this image with Fractal, and Fractal did't generate a thumbnail attached, causing EXA to try to ask the homeserver to generate the thumbnail and fails with:

2025-09-06T11:41:16.506998Z ERROR elementx: org.matrix.rustcomponents.sdk.ClientException$MatrixApi: kind=org.matrix.rustcomponents.sdk.ErrorKind$Unknown@92a3d2a, code=M_UNKNOWN, msg=Cannot find any thumbnails for the requested media ('/_matrix/client/v1/media/thumbnail/yoitsu.moe/NcsVByDTowJvrzepUEejJGxj'). This might mean the media is not a supported_media_format=(image/jpeg, image/jpg, image/webp, image/gif, image/png) or that thumbnailing failed for some other reason. (Dynamic thumbnails are disabled on this server.), details=Error { status_code: 400, body: Standard { kind: Unknown, message: "Cannot find any thumbnails for the requested media ('/_matrix/client/v1/media/thumbnail/yoitsu.moe/NcsVByDTowJvrzepUEejJGxj'). This might mean the media is not a supported_media_format=(image/jpeg, image/jpg, image/webp, image/gif, image/png) or that thumbnailing failed for some other reason. (Dynamic thumbnails are disabled on this server.)" } }

ShadowRZ avatar Sep 06 '25 11:09 ShadowRZ

Moving the issue to Element Meta as this affect several client like EXA and EW.

bmarty avatar Sep 08 '25 12:09 bmarty